Commit Graph

156 Commits

Author SHA1 Message Date
a370b5b125 Add kill-buffer-query-fns at post-init (fix race condition) 2017-12-30 01:30:41 -05:00
88946a893a Minor edits + comment out unused popup vars (for later) 2017-12-30 01:25:24 -05:00
5813b6e69a Autokill help buffers 2017-12-30 01:20:05 -05:00
9632b8c09d Flip default kill flag in quit-window #309 2017-12-30 01:19:56 -05:00
37a07c79b7 popups: handle :autokill in a kill-buffer-query-fn 2017-12-29 22:30:34 -05:00
9320bc7b55 Refactor org-agenda popup integration (prevent load when compiling) 2017-12-10 18:36:25 -05:00
41751aca44 Let magit handle its own windows (part 2) 2017-12-10 15:16:41 -05:00
76a4ae459d Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
e168118243 Revert a8f4d85d; back to help-fns+
Helpful, while sometime useful, tended to be slow when invoked.
2017-12-10 11:49:02 -05:00
a8f4d85da3 core-editor: remove help-fns+ & add helpful 2017-12-09 16:21:42 -05:00
cd7bd7628f lang/org: refactor org init process
after! org is more reliable than org-load-hook.
2017-12-09 14:42:46 -05:00
adcc2865c0 Possible fix for cascading magit popups #282 2017-12-08 23:14:13 -05:00
f8e8dbad8f General minor refactor 2017-12-08 23:14:12 -05:00
9d81bc5a8b Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
85645b386c Fix void variable doom-popup-mode-map error #284 2017-12-04 13:48:19 -05:00
ca1bbbf990 Don't autofit special popups by default 2017-11-08 22:51:55 +01:00
a6e0b3863d Add *compilation* popup rule 2017-11-05 19:54:43 +01:00
56fd62063e Do not remap delete-window directly in popups #238 2017-10-18 16:52:55 +02:00
4a1865c450 Don't autofit help popups
They become too small.
2017-10-06 20:42:40 +02:00
cd7ab060e0 General refactor & docstring updates 2017-10-05 17:02:59 +02:00
3bcd0c1071 Major refactor of the popup management api 2017-10-03 02:47:11 +02:00
6c68ff0b96 Adjust popup rules 2017-09-28 18:19:16 +02:00
f78fd0d91a Add shackle compatibility for eww browser 2017-09-28 18:19:16 +02:00
a4ddb1bc9b General minor refactor + cleanup 2017-09-28 18:19:15 +02:00
74eaed414e Silently autokill processes in closed popups 2017-09-27 14:48:23 +02:00
b4aadb100e Remove unnecessary org-agenda bindings from popup hacks 2017-09-27 01:26:29 +02:00
3fdcb1ec08 Add specific popup rule for the scratch buffer 2017-09-27 01:25:26 +02:00
546ca0e313 General, minor refactor 2017-09-26 21:55:01 +02:00
86ff43c6cb Minor refactor of popup rules logistics 2017-09-26 20:37:08 +02:00
ee1e9a853c Fix :autokill popup property not being respected 2017-09-26 20:37:08 +02:00
cf7b27f4eb popups: :fixed => :static, major changes to popup API
+ New command: doom/popup-kill-all
+ Update references to :fixed (now named :static)
+ Simplified doom-popup-p; moved :static filtering to
  doom-popup-windows.
+ New :autofit popup property, which resizes the popup to fit its
  content, if possible.
+ doom-popup-windows now takes one boolean argument: whether to ignore
  static popups or not.
2017-09-26 20:37:08 +02:00
e7a9a1a3ca Improve support for moving popup windows (WIP)
Now, the +evil/window-move-* commands are consistent when used with
popups. Also added doom/popup-move-* as popup-alternatives to
evil-window-move-{very,far}-* commands.

Relevant to #141 #171
2017-09-25 13:02:27 +02:00
6de185409f New macro: save-popups! 2017-09-25 02:58:59 +02:00
cfb094e589 Add :fixed property to popup rules 2017-09-24 20:46:22 +02:00
3dca6d8028 doom-popup-prop => doom-popup-property
Also, new doom-popup-properties function.
2017-09-24 20:45:23 +02:00
65d758ce8f Add doom-popup-inhibit-autokill variable 2017-09-24 20:44:17 +02:00
558a8d973c Change doom-popup-buffer & doom-popup-file signature
...and update its references.
2017-09-24 20:41:14 +02:00
cd3c51f489 Update comments/docstrings in core-popups 2017-09-24 17:10:48 +02:00
7fe0ec0be7 Incorporate neotree vars into popup rule 2017-09-24 17:10:47 +02:00
9b0aaee631 Fix neotree window shrinking when closing splits
Caused when rebalancing windows with sub-character-width fringes. Fixed
by forcibly resizing the neotree window to the correct width each time
it is restored by doom*popup-save.
2017-09-24 17:10:47 +02:00
fa981ffd3c Enable shackle-mode later in startup process 2017-07-13 00:00:35 +02:00
64aa0fef4d Appease byte-compiler 2017-07-13 00:00:35 +02:00
9a74124ede Add lang/plantuml 2017-07-08 23:39:03 +02:00
8c3693ed47 Add new variable: doom-popup-windows
Contains a list of open popup windows.

This preserves window order. Before this commit, doom-popup-windows (the
function), did not do this.
2017-07-06 17:43:17 +02:00
ecd8ad0f46 Change how themes, fonts & modelines are loaded
WARNING: THIS IS A BREAKING CHANGE FOR THEME/FONT/NLINUM CUSTOMIZATIONS.

This change was motivated by the need to decouple theme and font loading
from the ui/doom module.

Now, it is doom-core's purview. Theme and fonts are loaded after
initfiles are read (attached to the doom-init-ui-hook hook), giving
other modules (especially private ones) a chance to change the theme or
fonts.

+ Refactor core-ui.el
+ New init hook: doom-init-ui-hook
+ Decouple theme/font loading from ui/doom
+ Load modelines are doom-init-ui-hook
+ New theme/font variables (replaces old ui/doom variables)
  + doom-theme
  + doom-font
  + doom-variable-pitch-font
  + doom-unicode-font
+ Change nlinum variables
  + doom-line-number-lpad
  + doom-line-number-rpad
  + doom-line-number-pad-char

Addresses #117
2017-06-28 16:18:24 +02:00
a894f3ee1e Move persp-mode popup fix to core-popups 2017-06-28 12:26:50 +02:00
56d7c78e00 Expand :popup docstring 2017-06-24 02:25:15 +02:00
928812da8a Make def-setting! behave more like defmacro
set! used to aggressively evaluate its arguments (at expansion-time),
even if placed inside an after! block. This causes unavoidable errors if
those arguments use functions/variables that don't exist yet.

Fixes #112
2017-06-19 00:32:44 +02:00
9c93c453e8 Reorganize unit-tests and test workflow
+ Moved unit tests out of tests/ and into their respective modules.
+ Rewrite makefile and added these tasks:
  + <MODULE>/<SUBMODULE> -- byte-compile a specific module
  + test:<MODULE>/<SUBMODULE> -- runs tests for a specific module
  + testi -- run tests in an interactive session of Emacs (WIP)
  + run -- opens an Emacs session with this config; useful when it is in
    a non-standard location.
2017-06-14 21:15:19 +02:00
c1890307a6 Fix precedence of popup rules
More general rules should be lower in the list.
2017-06-13 17:52:06 +02:00