From 2cd42a801e1050cb2433a68e4ed90e26872bc91b Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Thu, 16 Nov 2017 14:45:25 -0500 Subject: [PATCH] Add a note about setq / setq-default --- global.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/global.org b/global.org index a17cea5..0755acd 100644 --- a/global.org +++ b/global.org @@ -7,6 +7,14 @@ # -*- eval: (add-hook 'before-save-hook 'org-icalendar-export-to-ics nil t) -*- +* Some remarks and comments +** setq vs setq-default + Some variables are buffer-local, others are not; for non buffer-local variables the two commands are + equivalent; for the buffer-local variables, setq acts on the current buffer, whereas setq-default sets the + default value of the variable for buffers that do not have a local value. + + :source: [https://stackoverflow.com/a/18173666] + * Move Customize to a separate file #+BEGIN_SRC emacs-lisp (setq custom-file "~/.emacs.d/custom.el")