Commit graph

93 commits

Author SHA1 Message Date
Henrik Lissner
f1c0d70e34
feature/popup: switch to *info* popups 2018-03-26 03:07:28 -04:00
Henrik Lissner
1af246daeb
feature/popup: add rule for *info* buffers 2018-03-26 03:04:13 -04:00
Henrik Lissner
abce3298fb
feature/popup: add example to :popups docstring 2018-03-24 07:25:00 -04:00
Henrik Lissner
322295b5d8
feature/popup: add docstring to +popup-define 2018-03-24 07:25:00 -04:00
Henrik Lissner
de7306cb61
feature/popup: comment corrections 2018-03-24 07:25:00 -04:00
Henrik Lissner
15032aaf60
feature/popup: move default org popup rules to config.el 2018-03-24 07:25:00 -04:00
Henrik Lissner
efbd3d69cc
feature/popup: add :popups setting 2018-03-24 07:25:00 -04:00
Henrik Lissner
db2e2b0642
feature/popup: major refactor
+ Defer replacement of 'size attribute in ALIST until popup opening
  (makes :popup definitions a little faster).
+ Define/use +popup-define helper function (for internal use only!)
2018-03-24 07:25:00 -04:00
Henrik Lissner
6e51dd249a
feature/popup: fix wrong-num-of-args error following helpful links 2018-03-24 07:25:00 -04:00
Henrik Lissner
5eadfdc880
Add EMACS26+ & EMACS27+ constants 2018-03-24 07:25:00 -04:00
Henrik Lissner
462b1f7853
feature/popup: always pop up which-key at bottom of frame 2018-03-21 16:37:11 -04:00
Henrik Lissner
221061b599
feature/popup: (another) possible fix for elusive 'at top level' bug #436 2018-03-19 04:45:19 -04:00
Henrik Lissner
5d69851f39
feature/popup: possible fix for elusive 'at top level' bug
Occasionally, a keyboard-quit bubbles up from popup's buffer cleanup
process, causing all kinds of havoc; like killed term buffers (#436),
abrupt interrupting of the minibuffer, and the point jumping around.

This tries to fix this, but needs more testing!
2018-03-18 02:39:33 -04:00
Henrik Lissner
4a32213b38
feature/popup: make modeline-setting more reliable
Some popups may retain their mode-line. Especially popups whose buffers
are displayed before their mode or content is inserted (maybe
asynchronously). This change tries to tackle that; ensuring that
mode-line setting is more consistent.
2018-03-18 02:37:13 -04:00
Henrik Lissner
4edb7999e9
feature/popup: refactor how closing unsaved popups are handled 2018-03-14 18:30:14 -04:00
Henrik Lissner
e59fd75107
feature/popup: make compilation popups larger 2018-03-14 18:29:40 -04:00
Henrik Lissner
4675ceff42
feature/popup: fix possible void-variable error w/ hide-mode-line-mode 2018-03-07 21:15:38 -05:00
Henrik Lissner
5c9ef4ee38
Replace doom-hide-modeline-mode w/ hide-mode-line-mode #423 2018-03-02 19:14:44 -05:00
Henrik Lissner
9a1bf42075
feature/popup: remove eval-when-compile
This fixes void-variable errors when byte-compiling this module.
2018-03-01 23:41:46 -05:00
Henrik Lissner
166ec9c281
feature/popup: +popup-ttl = 5 2018-02-19 20:25:54 -05:00
Henrik Lissner
3d20763d58
feature/popup: refactor popup cleanup function 2018-02-18 22:59:38 -05:00
Henrik Lissner
4ca2d1ef27
feature/popup: fix vslot reference typo 2018-02-07 01:09:32 -05:00
Henrik Lissner
27255d891e
feature/popup: fix 'unsupported map' error when disabling +popup-mode 2018-02-06 02:23:30 -05:00
Henrik Lissner
d0fa95f9a0
feature/popup: change 'doom:' rule: transient = t 2018-02-02 20:47:33 -05:00
Henrik Lissner
e0fd1b9043
feature/popup: replace +popup-enable-*-rules w/ +all/+defaults flags #394 2018-02-01 23:17:18 -05:00
Henrik Lissner
1ab7301a1d
feature/popup: add +popup-enable-*-rules options & delay init
Initialization of the popup rules now happens later (on
doom-init-ui-hook). The two new options are:

+ +popup-enable-fallback-rules: the popup module defines two catch-all
  fallback rules for buffers that match "^ \\*" and "^\\*". By setting
  this option to nil, you can disable that behavior, in case you want to
  set them yourself.
+ +popup-enable-default-rules: setting this to nil disable all default
  popup rules for various essential Emacs and Doom buffers that should be
  treated as popups.
2018-01-30 22:01:23 -05:00
Henrik Lissner
4e908bd525
Minor refactor & correction 2018-01-29 17:39:08 -05:00
Henrik Lissner
0ae1f51db6
feature/popup: force close in +popup*close advice 2018-01-28 22:21:42 -05:00
Henrik Lissner
c5b72566ea
Remove help-fns+, add helpful plugin #363 2018-01-21 21:37:15 -05:00
Henrik Lissner
c166449f08
feature/popup: preserve size later in init process
So it can't be overwritten via ALIST.
2018-01-15 00:39:39 -05:00
Henrik Lissner
28ac52e4db
feature/popup: define window-sides-reversed #349 2018-01-12 19:13:01 -05:00
Henrik Lissner
8785664267
feature/popup: replace split-window-no-error calls #349
split-window-no-error is a Emacs 26+ function.
2018-01-12 15:09:10 -05:00
Henrik Lissner
98fbbc533f
feature/popup: improve emacs 25.x compatibility #349 2018-01-12 14:40:34 -05:00
Henrik Lissner
2967b404d8
feature/popup: don't let neotree reset its width
Causes it to shrink everytime the wconf changes.
2018-01-11 22:17:37 -05:00
Henrik Lissner
ad06eacdac
feature/popup: general refactor
Adds +popup-origin-window, which contains the last non-popup you were in
before a popup was opened.
2018-01-11 01:09:16 -05:00
Henrik Lissner
bff48e5ed7
feature/popup: use new +popup-display-buffer #337
Adds support for `slot` and `vslot`, allowing for two dimensional
control over where popups may spawn. Highly experimental.

It's upsetting that I have to set `window--sides-inhibit-check`, I'd
like to find a way around that, if possible.
2018-01-11 01:05:24 -05:00
Henrik Lissner
991297b8e7
feature/popup: fix wrong-number-of-args error 2018-01-11 00:43:26 -05:00
Yiming Chen
ea55fcfd0f feature/popup: use delete-window in +popup*evil-command-window-execute
- +popup/close will pollute the popup history
- see also https://github.com/hlissner/doom-emacs/pull/339#issuecomment-356544535
2018-01-10 17:39:12 +08:00
Yiming Chen
4c310bfb17 feature/popup: call get-buffer-window for evil-command execute-window
- doom-popup-other-window was removed
2018-01-10 10:09:03 +08:00
Yiming Chen
8227f40d08 feature/popup: call +popup/close in +popup*evil-command-window-execute
- doom/popup-close was renamed to +popup/close
2018-01-10 10:08:55 +08:00
Henrik Lissner
a4e22d48b8
feature/popup: add :ignore support to :popup
Allows you to ignore certain buffers. Helpful for plugins that manage
their own windows, like magit.

To use:

  (set! :popup "^\\*magit" :ignore)

Relevant to #337
2018-01-09 17:42:11 -05:00
Henrik Lissner
bfcbb9ca01
feature/popup: fix +popup/toggle always opening *Messagse*
Because +popup/restore would always return nil.
2018-01-09 16:49:26 -05:00
Henrik Lissner
c03d0dbc06
feature/popup: add +popup-display-buffer action #337
This is experimental and disabled by default. It uses a slightly more
primitive backend that will stack popups away from the edge of the
frame. This will need more work to take window-slot into account.

To use it:

  (remove-hook '+popup-display-buffer-actions 'display-buffer-in-side-window)
  (add-hook '+popup-display-buffer-actions #'+popup-display-buffer t)
2018-01-09 16:49:25 -05:00
Henrik Lissner
7bdf8cf8d9
feature/popup: add +popup-display-buffer-actions #337
Gives us more flexibility to control what display-buffer functions to
use when trying to display the popup window.
2018-01-09 16:49:14 -05:00
Henrik Lissner
3bdf1dd174
feature/popup: by default, don't handle window selection
Plenty of special popups switch to a buffer and simply assume that that
buffer is now focused. So best we don't interfere with that unless we
must.
2018-01-08 17:30:55 -05:00
Henrik Lissner
bf7055a7db
feature/popup: make extra sure popups die safely
A buffer can find other, unexpected ways to kill itself, so we set up
a kill-buffer-hook to make sure we're there to catch them. Not all
heroes wear capes.
2018-01-07 22:18:50 -05:00
Henrik Lissner
395af731d9
feature/popup: tweak org rules + add org-capture rule 2018-01-07 22:18:50 -05:00
Henrik Lissner
7ca2e1593e
feature/popup: split +popup-p into two functions
Better to be explicit about what we want, especially when using one or
the other with no arguments.
2018-01-07 22:18:50 -05:00
Henrik Lissner
f9ab0cf767
feature/popup: add multi-term, eshell and evil hacks 2018-01-07 22:18:50 -05:00
Henrik Lissner
031e31c03c
feature/popup: minor refactor 2018-01-07 18:39:42 -05:00