Commit Graph

6621 Commits

Author SHA1 Message Date
d822560b34 Fix void-variable after-focus-change-function error
This variable is introduced in the latest Emacs and the condition around
it was inverted.
2018-06-17 02:54:14 +02:00
41bac99a5f eshell: color prompt red if last command failed 2018-06-17 02:34:06 +02:00
f3aadf6c77 Fix doom-temp-buffer-p & doom-real-buffer-p
A regression caused the former to error out (if the buffer name was less
than 2 characters long) and the latter to return t too eagerly (because
of an incorrect condition chain).
2018-06-17 02:30:02 +02:00
b731aeea8f Bind q to kill-this-buffer in Man-mode 2018-06-17 02:25:12 +02:00
913394bfe7 Be quiet, recentf! 2018-06-17 02:25:12 +02:00
17981d6a61 Conform hook names to conventions
Also minor reformatting & comment corrections.
2018-06-17 02:25:12 +02:00
c1b8d6f508 More configuration for smartparens
Fewer overlay highlights and show-pair-from-inside, in case we use that
feature later.
2018-06-17 02:21:46 +02:00
d31052d9db Reformat popup library: move polyfills down 2018-06-17 02:21:46 +02:00
a6116c6547 eshell: fix prompt face bleeding into command 2018-06-17 02:21:46 +02:00
194bcf4c60 Silence byte-compiler warning: unused lexical arg 2018-06-17 02:21:46 +02:00
1eae57a0b4 Rename +popup-display-buffer
To +popup-display-buffer-stacked-side-window, to make it more obvious
what it actually does.
2018-06-17 02:21:46 +02:00
c3988a8298 Give popups a small margin
To make up for lack of fringe.
2018-06-17 02:21:46 +02:00
9b5a219373 Improve robustness of popup predicates & checks 2018-06-17 02:21:46 +02:00
30c5f2fa26 set-pretty-symbols!: add :iosevka, :merge & :alist
MORE. POWER.
2018-06-17 02:21:46 +02:00
fd949e7063 Make diff larger when committing via magit
The diff window contains more important information, so we shrink the
git commit window and enlargen the diff window.
2018-06-16 21:48:37 +02:00
79413be1f0 Improve doom modeline focus hooks
More reliable deactivation when unfocusing or switching away from Emacs.
2018-06-16 21:41:39 +02:00
b880175d79 Remove switch-frame hooks
They are too unreliable. Use after-focus-change-function if you
must (though, that's an latest-Emacs-27-only feature atm).
2018-06-16 21:40:46 +02:00
e50b485948 All hail, our glorious byte compiler
Hush. Stop your complaining.
2018-06-16 21:19:57 +02:00
5e23429309 Fix set-devdocs!
Was not applying to all MODES and was using incorrect variable (docsets
-> docset), causing a void-variable error.
2018-06-16 21:16:24 +02:00
cc6809bcf8 Move windows with C-hjkl eshell's insert mode 2018-06-16 21:08:08 +02:00
48c9936f8d Fix eshell buffers omitted from workspace buffers
The mode was set before the window was displayed, which is where
persp-mode's check is.
2018-06-16 21:04:20 +02:00
ec6372ef66 Mark all temp buffers as unreal
Hopefully there are no plugins that use temp buffers to display things!
2018-06-16 21:02:54 +02:00
bf44c1abcc Add doom-temp-buffer-p predicate function 2018-06-16 21:02:40 +02:00
486019d853 Remove leading space in dashboard buffer's name
The leading space indicates a temporary buffer. The dashboard is no such
thing!
2018-06-16 21:01:16 +02:00
08986d9101 Simplify dashboard initial buffer check
We only need to check if we're in the scratch buffer. doom-real-buffer-p
is overkill for that.

This also reduces file loads at startup for autoloaded functions added
to the doom-real-buffer-functions and doom-unreal-buffer-functions.
2018-06-16 21:00:37 +02:00
8c64644450 setq->defvar (prettify-symbols-unprettify-at-point) 2018-06-16 20:57:51 +02:00
ec8ae0bedc Add :ui pretty-code & set-pretty-symbols! autodef
Along with defaults for C/C++, elm, elisp, js, typescript, web-mode, and
org-mode. Thanks to @ar1a for inspiration.
2018-06-16 19:32:25 +02:00
b991af552c A slightly more informative default eshell banner 2018-06-16 16:59:33 +02:00
a4ccc2fc81 Use shrink-path on eshell PWD in default prompt
Makes longer paths easier to deal with.
2018-06-16 16:51:43 +02:00
2addfebf8e Refactor eshell-visual-commands (and add ncmpcpp) 2018-06-16 16:42:26 +02:00
d9944bfc7f Replace fringes in eshell buffers with a margin
I think it looks better this way. Especially if you use solaire-mode.
2018-06-16 16:40:08 +02:00
aa1b203d1f Add z and bd commands to eshell, plus aliases 2018-06-16 16:38:39 +02:00
c0f601721c emacs/eshell: fix pcomplete+ivy/helm integration
Use ivy/helm instead of the popup at the bottom.
2018-06-16 16:37:43 +02:00
01b2856cc2 From eshell, open magit buffers in same window 2018-06-16 15:20:10 +02:00
f8625a62ac Lazy-load helm-projectile 2018-06-16 15:05:08 +02:00
4122ff4314 Reformat helm package configs 2018-06-16 15:04:27 +02:00
635fbb4a97 Fix "selecting deleted buffer" errors in helm #665
By properly handling helm popups.
2018-06-16 14:42:47 +02:00
c305d63dd7 Improve magit display-buffer logic
Now opens derivative magit buffers (from popup magit windows) in
fullscreen.
2018-06-16 14:38:52 +02:00
709c708376 Open magit-popup is a side window
Instead of in a split below the current window.
2018-06-16 14:38:06 +02:00
3ad16f660f Refactor set-company-backend! 2018-06-16 12:46:57 +02:00
b170119d4b Add smartparens to evil-ex; disable quote autopair
Don't autopair ' in eval-expression or evil-ex (doesn't make sense)
2018-06-16 12:40:57 +02:00
44363cae40 General, minor refactor & revision
Across the board. All the boards.
2018-06-16 12:26:58 +02:00
02caf4eeac Fix file templates expanding non-interactively #553
File templates should not expand unless the current file was opened
interactively. We use a simple heuristic to detect this: if the opened
buffer's is visible or not.
2018-06-16 12:23:47 +02:00
b5baeb81a7 Improve error handling in snippet commands
Fixes wrong-type-argument errors when fields or overlays are not
actually fields or overlays. Such heresy!
2018-06-16 12:22:50 +02:00
3f2318bc69 Fix wrong-type-argument errors on backspace
Caused when pressed at the beginning or end of a buffer.
2018-06-16 11:50:55 +02:00
74d364776e Move no-other-window to +popup-default-parameters
Should be customizable.
2018-06-16 11:45:09 +02:00
9a2f96c0f1 Lazy load projectile (experimental)
I can feel it; the power coursing through my veins. Every millisecond
saved at startup makes me more powerful. This world will be mine. Mine I
tell you!
2018-06-16 11:42:37 +02:00
c81304d18b Enable smartparens in eval-expression
This is experimental, so we can have delimiter/quote autopairing while
we write lisp into eval-expression.
2018-06-16 11:42:01 +02:00
b656e68bc3 Move startup optimization to early-init
Also load early-init from init if early-init-file isn't bound. This
improves startup a modest 3-5% for Emacs 27 users.
2018-06-16 11:38:19 +02:00
126b7b6383 Refactor associate! with cl-defmacro 2018-06-16 11:34:42 +02:00