You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
572 B
EmacsLisp
23 lines
572 B
EmacsLisp
(defun toggle-local-vars-on ()
|
|
(interactive)
|
|
(setq enable-local-variables t)
|
|
(message "enabled local variables"))
|
|
|
|
(defun toggle-local-vars-off ()
|
|
(interactive)
|
|
(setq enable-local-variables nil)
|
|
(message "disabled local variables"))
|
|
|
|
(defun toggle-remote-local-vars-on ()
|
|
(interactive)
|
|
(setq enable-remote-dir-locals t
|
|
enable-local-variables t)
|
|
(message "enabled local variables"))
|
|
|
|
(defun toggle-remote-local-vars-off ()
|
|
(interactive)
|
|
(setq enable-remote-dir-locals nil)
|
|
(message "disabled local variables"))
|
|
|
|
(provide 'toggle-local-vars)
|