Commit Graph

36 Commits

Author SHA1 Message Date
75202c9445 Version bump 2016-11-13 20:45:20 +01:00
bfb6aaf8ad Don't persist focus mode across major mode change
Addresses #11. Focus mode will no longer make any variables
`permanent-local'. On major mode change `focus-terminate' is run so that
the overlays are removed.
2016-11-13 20:25:47 +01:00
ffd97a5a36 Fix bug related to post-command-hook
The `post-command-hook` was made `permanent-local` in order to keep
focus mode enabled when changing major mode. Other modes relies on the
`post-command-hook` to be cleared on major mode change, causing
problems. This fix rather uses the `permanent-local-hook` to tag
functions that should not be removed from hooks.

This fixes abo-abo/swiper#755. It might fix bugs I have not been able to
reproduce, namely #10, #8 and a followup in #7.
2016-11-06 16:02:58 +01:00
Syohei YOSHIDA
4d31363bf9 Use cl-lib function instead of cl.el 2016-10-13 15:49:57 +09:00
abad47f1c4 Add functions to pin/unpin the focused section 2016-01-31 23:18:59 +01:00
f310fa1c31 Split up `focus-move-focus' 2016-01-31 23:13:29 +01:00
307df45c69 Fix #5 2016-01-11 14:22:48 +01:00
b90cfb3c27 Fix #4 2015-12-29 16:26:08 +01:00
0a6e9624ea Allow for changing the current thing interactively
The `focus-mode-to-thing` variable dictates what thing to use according
to the currently enabled mode. Changing this if you only wished to
change the thing for a single session seems tedious. Now this can be
achieved by `M-x focus-change-thing`.
2015-11-18 09:15:29 +01:00
f590761dac focus-read-only-mode calls for version bump 2015-05-24 17:48:44 +02:00
ef5f7fc892 Cleaned up focus-next-thing' and focus-prev-thing' 2015-05-24 17:47:39 +02:00
fe94e0de69 Split activation/deactivation into functions 2015-05-24 02:42:15 +02:00
1423efbd25 Don't assume bounds are found 2015-05-24 02:40:35 +02:00
27eda82b95 Binding for enabling focus-read-only-mode in focus-mode 2015-05-24 02:04:50 +02:00
d1bd81ee4d Added focus-read-only-mode 2015-05-24 02:04:40 +02:00
b21341bd40 Added function for briefly showing the cursor 2015-05-24 02:04:02 +02:00
a723f78dc4 Added function for hiding the cursor 2015-05-24 02:03:46 +02:00
94ed8ab68b Defined variables to help hide the cursor
Used in focus-read-only-mode
2015-05-24 02:02:03 +02:00
ac711fe13a Whitespace cleanup 2015-05-24 02:01:08 +02:00
58a91b29aa Split focus-bounds into two functions 2015-05-24 02:00:06 +02:00
284a1240ce Cleaned up doc in `focus-average-colors' 2015-05-24 01:59:28 +02:00
497d13d758 Added functions for jumping between things 2015-05-24 01:56:36 +02:00
cd2aad5590 Cleaned up focus-dimness docstring 2015-05-19 00:21:38 +02:00
4c8391ea32 Fixed bug in defgroup 2015-05-17 20:28:40 +02:00
ff93c948da Added defgroup 2015-05-17 12:41:33 +02:00
809697ba52 Changed paragraph to sections 2015-05-17 12:41:18 +02:00
c89d08f510 Applied purcell's recommendations 2015-05-17 12:36:20 +02:00
b4fb132314 Changing modes should not affect Focus mode 2015-05-17 01:32:32 +02:00
5bddbbb7d3 Remove newline 2015-05-17 01:32:02 +02:00
663205443c Forgot to rename variables everywhere 2015-05-17 01:31:44 +02:00
35f3cf5d52 Use things as defined in thingatpt as bounds
One can customize what sort of bounds should be used for a mode, where
derived modes are used to generalize. By default text-mode and prog-mode
are defined.
2015-05-17 00:58:20 +02:00
eeb12d8db8 Added function to generate color based on `focus-dimness' 2015-05-13 00:08:57 +02:00
90806dc7ea Added custom variable for setting dimness 2015-05-13 00:08:43 +02:00
e8c1eb5ce2 Added short commentary 2015-05-12 23:21:33 +02:00
10b44de510 Docstring update 2015-05-12 22:43:26 +02:00
af9fbfd9cb Changed name and added header 2015-05-12 22:42:01 +02:00