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; -*-
|
||||
|
||||
;; Time-stamp: <2020-12-03T08:37:05+0100>
|
||||
;; Time-stamp: <2020-12-05T10:45:47+0100>
|
||||
|
||||
;;; Commentary:
|
||||
;; * Banish customizations.
|
||||
|
@ -53,10 +53,12 @@
|
|||
(defvar slow-computer nil) ; Slow computers load fewer packages.
|
||||
(if (member (system-name) '("steuerbeamter" "azimuth" "localhost"))
|
||||
(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.
|
||||
If t, run `whitespace-cleanup', `clang-format-buffer' and so on.")
|
||||
(put 'my/reformat-save 'safe-local-variable #'booleanp)))
|
||||
If t, run `whitespace-cleanup', `clang-format-buffer' and so on."
|
||||
:type 'boolean
|
||||
:safe #'booleanp
|
||||
:local t)))
|
||||
|
||||
(provide 'basics/global-variables)
|
||||
;;; global-variables.el ends here
|
||||
|
|
Loading…
Reference in New Issue
Block a user