summaryrefslogtreecommitdiff
path: root/lisp/toggle-local-vars/toggle-local-vars.el
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-04-01 23:24:08 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-04-01 23:24:08 -0400
commitfc8686d3c8773c409cde247c7e611f5b2b4b947b (patch)
tree8929d1410533c000913cf5193c548fbaee5d3f0d /lisp/toggle-local-vars/toggle-local-vars.el
parent7f1fc2f936fb66ae3720863432a0a8266a2e5003 (diff)
downloademacs.d-fc8686d3c8773c409cde247c7e611f5b2b4b947b.tar.gz
created toggle-local-vars lisp script
Diffstat (limited to 'lisp/toggle-local-vars/toggle-local-vars.el')
-rw-r--r--lisp/toggle-local-vars/toggle-local-vars.el11
1 files changed, 11 insertions, 0 deletions
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)