[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/focus b4fb132314 23/82: Changing modes should not affect F
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/focus b4fb132314 23/82: Changing modes should not affect Focus mode |
Date: |
Tue, 6 Sep 2022 04:58:55 -0400 (EDT) |
branch: elpa/focus
commit b4fb132314bbc04638d442ba546aa576a12d197d
Author: Lars Tveito <larstvei@ifi.uio.no>
Commit: Lars Tveito <larstvei@ifi.uio.no>
Changing modes should not affect Focus mode
---
focus.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/focus.el b/focus.el
index e1d1ce6684..885c9e04a6 100644
--- a/focus.el
+++ b/focus.el
@@ -65,6 +65,12 @@ Things that are defined include `symbol', `list', `sexp',
(defvar-local focus-post-overlay nil
"The overlay that dims the text past the current-point.")
+;; Changing major-mode should not affect Focus mode.
+(dolist (var '(focus-pre-overlay
+ focus-post-overlay
+ post-command-hook))
+ (put var 'permanent-local t))
+
(defun focus-any (f lst)
"This function takes a function and a list, and returns the
first NON-NIL value from applying F to an element in LST."
- [nongnu] elpa/focus 236c002b57 14/82: Tweaking sizes, trying max-with, (continued)
- [nongnu] elpa/focus 236c002b57 14/82: Tweaking sizes, trying max-with, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus ab42b87799 68/82: Fix buffer-local variables definition, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 9defce6158 10/82: Place the gif's side by side, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 03e3cbc566 05/82: Documented every function/variable, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 497d13d758 32/82: Added functions for jumping between things, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 307df45c69 51/82: Fix #5, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 3013760ef0 12/82: Resizing did not work, retry!, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus ff93c948da 26/82: Added defgroup, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 6a6da19b00 09/82: Fixed image names, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 741a945866 55/82: Merge branch 'syohex-cl-lib', ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus b4fb132314 23/82: Changing modes should not affect Focus mode,
ELPA Syncer <=
- [nongnu] elpa/focus 809697ba52 25/82: Changed paragraph to sections, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 27eda82b95 40/82: Binding for enabling focus-read-only-mode in focus-mode, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus eeb12d8db8 19/82: Added function to generate color based on `focus-dimness', ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 500bab4833 13/82: Yet another try, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 3fafdc7947 62/82: Allow explicitly setting derived modes in focus-mode-to-thing, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 9a5cf4f972 77/82: Formatting, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 663205443c 21/82: Forgot to rename variables everywhere, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 4d31363bf9 54/82: Use cl-lib function instead of cl.el, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus af9fbfd9cb 06/82: Changed name and added header, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 02cec3494d 01/82: Initial commit, ELPA Syncer, 2022/09/06