summaryrefslogtreecommitdiff
path: root/emacs/site-lisp/my-funcs.el
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2025-04-17 11:27:39 -0700
committerThomas Ulmer <thomasmulmer02@gmail.com>2025-04-17 11:27:39 -0700
commit5b33c36e579fdf8c127a53e542b4f02ce3bab2b8 (patch)
tree7f2155d3136acfdfca8d6f942b9b53bb0e7a8db8 /emacs/site-lisp/my-funcs.el
parentae2bf0a9162084af6e32df20258ed689a24048bc (diff)
various small changes and additions
Diffstat (limited to 'emacs/site-lisp/my-funcs.el')
-rw-r--r--emacs/site-lisp/my-funcs.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/site-lisp/my-funcs.el b/emacs/site-lisp/my-funcs.el
index 01bf5cc..37a8b7b 100644
--- a/emacs/site-lisp/my-funcs.el
+++ b/emacs/site-lisp/my-funcs.el
@@ -57,6 +57,12 @@ mark. Does the same of ARG number sexps if given"
(save-buffers-kill-terminal)
(delete-frame)))
+(defun toggle-window-other-reachability ()
+ (interactive)
+ (let* ((win (get-buffer-window (current-buffer)))
+ (current (window-parameter win 'no-other-window)))
+ (set-window-parameter win 'no-other-window (not current))))
+
;; indent code when pasting, from
;; https://trey-jackson.blogspot.com/2008/03/emacs-tip-15-indent-yanked-code.html