Commit Graph

4093 Commits

Author SHA1 Message Date
Henrik Lissner
29e25f5ea8 feature/popup: use window-toggle-side-window
Neat. `window-toggle-side-window` exists and essentially does what
I wanted +popup/toggle to do.
2018-01-07 01:51:46 -05:00
Henrik Lissner
af58e321dd Remove vestigial comment 2018-01-07 00:36:46 -05:00
Henrik Lissner
4024437cfb lang/latex: don't forcibly hide modeline 2018-01-07 00:35:59 -05:00
Henrik Lissner
a5bb69cf6a Ensure *Messages* and *scratch* have a modeline 2018-01-07 00:35:23 -05:00
Henrik Lissner
7872faad3a feature/popup: don't forcibly hide modeline in org-agenda popups 2018-01-07 00:20:11 -05:00
Henrik Lissner
2d9e63d5bb General & minor refactoring 2018-01-07 00:15:58 -05:00
Henrik Lissner
25619908a2 Narrow down the purpose of init & post-init hooks
Essential hooks should be added to doom-init-hook. Non-essential and
extra hooks should be added to doom-psot-init-hook.
2018-01-07 00:15:58 -05:00
Henrik Lissner
c0680e6fa3 lang/org: refactor load-path mods & don't forget it
Previously, Doom would forget lang/org's modification of the load-path
if you call doom//reload-load-path (which is called when you do package
management with an open Emacs session).

No more!
2018-01-07 00:15:58 -05:00
Henrik Lissner
392f04446f General refactor (use map.el more)
+ map-delete is shorter and faster than assq-delete-all
+ map-put is simpler than the delete-then-set workflow
+ map-merge is great for merging default and user settings
2018-01-07 00:15:58 -05:00
Henrik Lissner
2eeb6ce0d9 📝 Write feature/popup's readme 2018-01-07 00:15:57 -05:00
Henrik Lissner
5cd29479f4 Refactor feature/evil hacks & advice; fix tests 2018-01-07 00:15:57 -05:00
Henrik Lissner
0c3484414c Fix dashboard replacing warnings buffer in popup at startup
It makes the dashboard screen a mess!
2018-01-07 00:15:57 -05:00
Henrik Lissner
31a4244686 Rethink what Doom loads at startup and manually
Better to simply load what we need, when we need it, rather than set up
autoloads for every litte thing.
2018-01-07 00:15:57 -05:00
Henrik Lissner
0042a56d02 Add new cache library (persistent-soft wrapper) 2018-01-07 00:15:57 -05:00
Henrik Lissner
fcd87f6f69 feature/popup: fix balance-windows freezes with neotree
neotree's own advice around balance-windows caused little freezes while
splitting/closing windows, while a neotree pane was open. Not on my
watch.
2018-01-07 00:15:57 -05:00
Henrik Lissner
03d77c0bef feature/popup: fix 'Cancelled timer' spam
https://youtu.be/fn4jIlFwuLU
2018-01-07 00:15:57 -05:00
Henrik Lissner
eab079724d feature/popup: add inhibit-timers letvar
Allows us to disable timer functionality when we're simply setting popup
buffers aside temporarily.
2018-01-07 00:15:56 -05:00
Henrik Lissner
eef808d795 feature/popup: reduce state in window parameters & fix popup continuity
+ Fix list where cons should be
+ Update +popup-window-parameters docstring
+ Use display-buffer instead of +popup-buffer (no need to remember
  alist). This ensures restored popups (with +popup/restore) are truly
  identical to their former selves.
2018-01-07 00:15:56 -05:00
Henrik Lissner
4f605d26cd (put '+popup-buffer-mode permanent-local{,-hook} t) 2018-01-06 04:57:54 -05:00
Henrik Lissner
eedd86135e feature/popup: add hacks for wgrep, org, persp-mode & balance-windows
Plus +popup*close and +popup*save advice functions.
2018-01-06 04:56:57 -05:00
Henrik Lissner
a9a731c1eb feature/popup: replace alist param with popup 2018-01-06 04:56:12 -05:00
Henrik Lissner
4df471e53a feature/popup: fix arrayp errors when killing transient buffers 2018-01-06 04:52:37 -05:00
Henrik Lissner
f087f731ef feature/popup: fix +popup/toggle 2018-01-06 04:42:54 -05:00
Henrik Lissner
45bc438c37 feature/popup: fix typo (writeable => writable)
This prevented window parameters from being saved.
2018-01-06 04:42:24 -05:00
Henrik Lissner
48b0a468d1 THOU SHALT NOT WORSHIP FALSE IDOLS, said the byte compiler
And I obeyed.
2018-01-06 04:24:38 -05:00
Henrik Lissner
d738a8d13a lang/org: fix unit test 2018-01-06 04:15:40 -05:00
Henrik Lissner
82abc8647a lang/org: remove recursive require (not necessary anymore?) 2018-01-06 04:15:19 -05:00
Henrik Lissner
185bf58c9e lang/org: add elpa org to load-path in init.el #327
Let's try to change the load-path sooner...
2018-01-06 04:02:05 -05:00
Henrik Lissner
d76f991c0c feature/popup: clean up buffer processes too, if any 2018-01-06 03:30:27 -05:00
Henrik Lissner
b681917082 Remove/replace references to doom-popup-buffer 2018-01-06 03:27:23 -05:00
Henrik Lissner
4fdf4a58b4 feature/popup: mention custom 'size parameter in :popup 2018-01-06 03:09:29 -05:00
Henrik Lissner
8531b5245e ui/vi-tilde-fringe: use minor mode instead of global mode
The global mode is a tad greedy, affecting buffers I don't want it to.
So only activate it in certain places. This may change.
2018-01-06 03:03:25 -05:00
Henrik Lissner
b28f6ed477 General minor refactor & comment revision 2018-01-06 03:03:02 -05:00
Henrik Lissner
b17cafc4f7 feature/evil: recenter after splitting 2018-01-06 03:02:12 -05:00
Henrik Lissner
60cded00e6 Decouple doom/escape & evil 2018-01-06 03:00:45 -05:00
Henrik Lissner
a88cb1e4eb require map library for +popup--normalize-alist 2018-01-06 02:48:08 -05:00
Henrik Lissner
08b479b06f Rename popup parameter escape-quit => quit 2018-01-06 02:42:53 -05:00
Henrik Lissner
3cbddbfd88 Generalize +evil-esc-hook into doom-escape-hook
This lets vanilla Emacs users in on having a universal "escape" key.
2018-01-06 02:38:39 -05:00
Henrik Lissner
c8768f512d private/default: bind M-w to +popup-buffer-mode-map 2018-01-06 02:22:34 -05:00
Henrik Lissner
91357a3e5d 💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00
Henrik Lissner
065091bdca flycheck: use pos-tip in GUI Emacs (linux), popup-tip everywhere else
Long story short, `flycheck-popup-tip' works everywhere but only looks
*ok*.  `flycheck-pos-tip' looks great, but only in GUI Emacs on Linux.
So we want:

+ GUI Emacs (Linux): pos-tip
+ GUI Emacs (MacOS): popup-tip
+ tty Emacs (anywhere): popup-tip
2018-01-06 01:10:37 -05:00
Henrik Lissner
9e3682535a Fix describe-(function|variable) and ivy-resume
describe-(function|variable) weren't remapped to their counsel variants,
so ivy-resume wouldn't resume those sessions properly.
2018-01-06 00:08:53 -05:00
Henrik Lissner
4b8315466b private/default: fix void variable errors when evil module is disabled
Evil keymaps don't exist if the evil module is off, so wrap evil-mode
keymap bindings in (:after evil ...)
2018-01-05 23:59:48 -05:00
Henrik Lissner
42cee2e046 Update :jump => :lookup 2018-01-05 23:57:48 -05:00
Henrik Lissner
9cc762ffbe Remove unnecessary +doom-dashboard|init from test 2018-01-05 14:56:55 -05:00
Henrik Lissner
1583ca573d Fix ui/doom-dashboard tests 2018-01-05 14:55:21 -05:00
Henrik Lissner
23ff93703c Append slash to default-directory in doom dashboard
...And give +doom-dashboard-update-pwd a docstring
2018-01-05 14:54:47 -05:00
Henrik Lissner
f277eddf1b feature/syntax-checker: use flycheck-popup-tip on MacOS #318
pos-tip.el (what flycheck-pos-tip's uses) is buggy on MacOS, with no
guarantee where a popup may appear.
2018-01-05 14:43:50 -05:00
Henrik Lissner
55ad843a09 lang/org: fix byte-compiler using outdated, built-in org #327
During runtime, the new version of org (installed via ELPA) is added to
load-path, but this doesn't happen during compile-time. Wrap it in
eval-and-compile and that changes.
2018-01-05 13:43:13 -05:00
Henrik Lissner
fab6fb1270 ui/window-select: use use-package :when/:unless instead of cond
Appease the byte-compiler.
2018-01-05 13:17:04 -05:00