Commit Graph

61 Commits

Author SHA1 Message Date
a84ade00a2 Addresses #13
The source of the error was not keeping track of which buffer focus should
operate on.

Also ensured that all hooks are local, which might also effect #13.
2017-06-12 16:43:59 +02:00
155da77a32 Fixes #14
In `focus-read-only-mode` the `cursor-type` was unconditionally set to `t`, and
did not restore the users customized cursor type. This is fixed by storing the
original value of `cursor-type` in `focus-cursor-type`.
2017-05-20 18:01:40 +02:00
6add57b887 Fix indentation 2016-11-25 16:29:25 +01:00
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
741a945866 Merge branch 'syohex-cl-lib' 2016-10-13 13:01:11 +02: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
871f3c60ce Fixed matching parenthesis 2015-05-24 19:41:51 +02:00
563a3bd188 Updated README 2015-05-24 17:51:58 +02: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
6b9620a73d Added section on `focus-read-only-mode' in README 2015-05-24 03:03:42 +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
4846438e3f Merge branch 'read-only' 2015-05-24 02:14:15 +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
5753e25fdf fixed the focus-average-colors docstring 2015-05-18 00:46:43 +02:00
4c8391ea32 Fixed bug in defgroup 2015-05-17 20:28:40 +02:00
60f460b5be Simplified installation 2015-05-17 19:56:03 +02:00
01a7a95334 Changed paragraph to section in README 2015-05-17 12:42:06 +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
1c664fb992 Added installation section 2015-05-12 23:31:54 +02:00
e8c1eb5ce2 Added short commentary 2015-05-12 23:21:33 +02:00
f193014150 Did not work, back to static width 2015-05-12 23:17:20 +02:00
236c002b57 Tweaking sizes, trying max-with 2015-05-12 23:15:49 +02:00
500bab4833 Yet another try
Followed this:
http://stackoverflow.com/questions/14675913/how-to-change-image-size-markdown

Did not work, so trying this:
http://stackoverflow.com/questions/24383700/resize-image-in-the-wiki-of-github-using-markdown
2015-05-12 23:13:55 +02:00
3013760ef0 Resizing did not work, retry! 2015-05-12 23:10:00 +02:00