diff --git a/init.el b/init.el index 85a711b..b853ccb 100644 --- a/init.el +++ b/init.el @@ -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)