summaryrefslogtreecommitdiff
path: root/lisp/toggle-local-vars
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/toggle-local-vars')
-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)