diff options
author | John Turner <jturner.usa@gmail.com> | 2023-04-01 23:24:08 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2023-04-01 23:24:08 -0400 |
commit | fc8686d3c8773c409cde247c7e611f5b2b4b947b (patch) | |
tree | 8929d1410533c000913cf5193c548fbaee5d3f0d | |
parent | 7f1fc2f936fb66ae3720863432a0a8266a2e5003 (diff) | |
download | emacs.d-fc8686d3c8773c409cde247c7e611f5b2b4b947b.tar.gz |
created toggle-local-vars lisp script
-rw-r--r-- | init.el | 2 | ||||
-rw-r--r-- | lisp/toggle-local-vars/toggle-local-vars.el | 11 |
2 files changed, 13 insertions, 0 deletions
@@ -47,6 +47,8 @@ (require 'license-boilerplate) +(require 'toggle-local-vars) + (when (file-exists-p custom-file) (load custom-file)) diff --git a/lisp/toggle-local-vars/toggle-local-vars.el b/lisp/toggle-local-vars/toggle-local-vars.el new file mode 100644 index 0000000..a85c9ea --- /dev/null +++ b/lisp/toggle-local-vars/toggle-local-vars.el @@ -0,0 +1,11 @@ +(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")) + +(provide 'toggle-local-vars) |