From fc8686d3c8773c409cde247c7e611f5b2b4b947b Mon Sep 17 00:00:00 2001 From: John Turner Date: Sat, 1 Apr 2023 23:24:08 -0400 Subject: [PATCH] created toggle-local-vars lisp script --- init.el | 2 ++ lisp/toggle-local-vars/toggle-local-vars.el | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 lisp/toggle-local-vars/toggle-local-vars.el 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)