Improve the init-file section

This commit is contained in:
Gerard Vermeulen 2021-12-05 16:36:49 +01:00
parent 698eee6250
commit d53506b9be

View File

@ -139,7 +139,11 @@ startup in order to get more control in the [[#sec:package-bootstrapping][Packag
The [[info:elisp#Quoting][quoting (info)]] and the [[info:elisp#Backquote][backquote (info)]] pages explain how to understand the
reader macros ~'~ (quote), ~`~ (backquote), ~,~ (substitute) and ~@,~ (splice)
in the ~custom-set-variable~ function call below.
in the ~custom-set-variable~ function call below. A tutorial of how to use those
reader macro's is the [[https://mullikine.github.io/posts/macro-tutorial/][didactic emacs-lisp macro example]].
Because of the ~custom-set-variable~ function call, the [[info:emacs#Init File][init file (info)]] does
not load the ~custom-file~ as [[info:emacs#Saving Customizations][saving customizations (info)]] recommends.
#+attr_latex: :options bgcolor=LightGoldenrodYellow
#+begin_src emacs-lisp
@ -148,10 +152,6 @@ in the ~custom-set-variable~ function call below.
;;; Code:
(require 'cl-lib)
;; https://with-emacs.com/posts/tutorials/almost-all-you-need-to-know-about-variables/
(defmacro csetq (sym val)
`(funcall (or (get ',sym 'custom-set) 'set-default) ',sym ,val))
(custom-set-variables
'(after-save-hook #'executable-make-buffer-file-executable-if-script-p)
'(column-number-mode t)