Emacs: Make my/reformat-save a custom variable.
This commit is contained in:
parent
8b94772e9a
commit
8ba9ebf228
|
@ -1,6 +1,6 @@
|
||||||
;;; global-variables.el --- Set some global variables. -*- lexical-binding: t; -*-
|
;;; global-variables.el --- Set some global variables. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-12-03T08:37:05+0100>
|
;; Time-stamp: <2020-12-05T10:45:47+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; * Banish customizations.
|
;; * Banish customizations.
|
||||||
|
@ -53,10 +53,12 @@
|
||||||
(defvar slow-computer nil) ; Slow computers load fewer packages.
|
(defvar slow-computer nil) ; Slow computers load fewer packages.
|
||||||
(if (member (system-name) '("steuerbeamter" "azimuth" "localhost"))
|
(if (member (system-name) '("steuerbeamter" "azimuth" "localhost"))
|
||||||
(setq slow-computer t)) ; localhost is schnibble.
|
(setq slow-computer t)) ; localhost is schnibble.
|
||||||
(defvar-local my/reformat-save t
|
(defcustom my/reformat-save t
|
||||||
"Make changes to the buffer on save.
|
"Make changes to the buffer on save.
|
||||||
If t, run `whitespace-cleanup', `clang-format-buffer' and so on.")
|
If t, run `whitespace-cleanup', `clang-format-buffer' and so on."
|
||||||
(put 'my/reformat-save 'safe-local-variable #'booleanp)))
|
:type 'boolean
|
||||||
|
:safe #'booleanp
|
||||||
|
:local t)))
|
||||||
|
|
||||||
(provide 'basics/global-variables)
|
(provide 'basics/global-variables)
|
||||||
;;; global-variables.el ends here
|
;;; global-variables.el ends here
|
||||||
|
|
Loading…
Reference in New Issue