From 086b24b8502b41a719aaa0882decb6f49592664d Mon Sep 17 00:00:00 2001 From: John Turner Date: Tue, 12 Sep 2023 00:42:47 -0400 Subject: [PATCH] add functions to toggle remote local variables --- lisp/toggle-local-vars/toggle-local-vars.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lisp/toggle-local-vars/toggle-local-vars.el b/lisp/toggle-local-vars/toggle-local-vars.el index a85c9ea..9d20454 100644 --- a/lisp/toggle-local-vars/toggle-local-vars.el +++ b/lisp/toggle-local-vars/toggle-local-vars.el @@ -8,4 +8,15 @@ (setq enable-local-variables nil) (message "disabled local variables")) +(defun toggle-remote-local-vars-on () + (interactive) + (setq enable-remote-dir-locals t + enable-local-variables t) + (message "enabled local variables")) + +(defun toggle-remote-local-vars-off () + (interactive) + (setq enable-remote-dir-locals nil) + (message "disabled local variables")) + (provide 'toggle-local-vars)