Commit Graph

430 Commits

Author SHA1 Message Date
Henrik Lissner
67f9aa1ffe
Move whitespace config to core-ui
Introduces new doom|show-whitespace-maybe hook to replace
doom|editorconfig-whitespace-mode-maybe
2018-05-09 00:20:01 +02:00
Henrik Lissner
317b556bde
Extract :ui posframe packages into other modules 2018-05-09 00:20:01 +02:00
Henrik Lissner
0afae2eacf
Remove fringe-helper package 2018-05-08 19:42:28 +02:00
Henrik Lissner
78dde79622
Make doom|ansi-color-apply more robust 2018-05-07 22:02:00 +02:00
Henrik Lissner
b76addda39
Delay setting frame buffer-predicate until doom-init 2018-05-07 19:26:31 +02:00
Henrik Lissner
135ebd925f
Enable global-eldoc-mode; less work for me! 2018-04-23 00:34:03 -04:00
James Conroy-Finn
21909a83e1 Add missing buffer name to kill confirmation 2018-04-17 12:26:41 +01:00
Henrik Lissner
904c997e9f
Add modeline layout to format function docstring 2018-04-05 02:27:31 -04:00
Henrik Lissner
c1d1753490
Provoke doom to init theme in daemon session 2018-04-04 07:40:39 -04:00
Henrik Lissner
13bffc54bd
Refactor theme/font initialization
Addressed #489
2018-03-30 04:12:52 -04:00
Henrik Lissner
c998cebd31
ansi-color-for-comint-mode = t 2018-03-27 19:18:26 -04:00
Henrik Lissner
2364e97285
Fix switch-window hooks when switching with the mouse
And moved it to ui/nav-flash, which is what this code was introduced to
fix in the first place!
2018-03-27 02:50:40 -04:00
Henrik Lissner
f3b99779c9
Add doom-after-switch-frame-hook; fix over-eager switch-window hooks
Switch-window hooks would fire too frequently; like when switching to
the same window, clicking in windows, or from the minibuffer (e.g.
during ivy sessions).
2018-03-26 06:40:04 -04:00
Henrik Lissner
57065c4a71
Don't prompt to save for non-file-visiting buffers on kill-this-buffer 2018-03-24 17:05:06 -04:00
Henrik Lissner
24043d9bfd
Silence beginning/end-of-line/read-only errors on motions in minibuffer 2018-03-23 02:29:17 -04:00
Henrik Lissner
9f2a94c25a
Only init fonts once, and for any (tty/gui) session 2018-03-22 19:32:08 -04:00
Henrik Lissner
4fc2897372
core-ui: define doom-*-switch-*-hooks & minor refactor
doom-init-theme-hook is now obsolete; to be replaced with
doom-load-theme-hook.
2018-03-22 19:26:13 -04:00
Henrik Lissner
2a45b80e2a
Revert cfe2fe87; needs better checks 2018-03-15 04:49:49 -04:00
Henrik Lissner
aec4fbe590
Always apply ansi color codes to compilation buffers 2018-03-14 18:28:25 -04:00
Henrik Lissner
cfe2fe87d9
Reduce screen flicker when creating a new frame
...by only reloading the theme if the new frame is of a different type
from the last (tty and GUI frames).
2018-03-14 18:26:59 -04:00
Henrik Lissner
ccaf5eabbd
Fix switch-window hooks; add switch-buffer hooks 2018-03-14 04:52:09 -04:00
Henrik Lissner
fbb9947c7e
Add doom-{after,before}-switch-window-hook hooks 2018-03-12 13:32:02 -04: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
b05ccbb98e
Move some UI vars from core.el to core-ui.el 2018-02-18 02:59:11 -05:00
Henrik Lissner
2b43dd42e2
Refactor doom-hide-modeline-mode 2018-02-16 21:02:46 -05:00
Henrik Lissner
a05c4cca6c
Fix kill-this-buffer asking to save twice 2018-02-13 17:53:11 -05:00
Henrik Lissner
4566dea4b3
Fix save-buffer prompt occurring after buffer is buried 2018-02-11 03:58:57 -05:00
Henrik Lissner
c5837440d6
Refactor kill-this-buffer advice
And prevent it from switching to fallback buffer too early. Again.
2018-02-03 22:36:48 -05:00
Henrik Lissner
3830a8aba1
feature/workspaces: fix infinite recursion in buffer-predicate #399
By refactoring so that the middle-man buffer predicate wasn't necessary.
2018-02-03 18:06:47 -05:00
Henrik Lissner
76a1e8a279
Fix theme/font init in daemon Emacs
Possibly addresses #399 and #400
2018-02-03 17:58:10 -05:00
Henrik Lissner
46225e2830
core-ui: fix comment typo 2018-02-02 20:47:33 -05:00
Henrik Lissner
e71f28601a
Fix inconsistencies in fonts across frames #399
Also, minor refactor for doom|init-theme.
2018-02-02 20:47:32 -05:00
Henrik Lissner
d1953e00c4
Remove doom--cycle-real-buffers; refactor kill-this-buffer advice
cycle-real-buffers was a tidbit of complexity that was never necessary
in the first place. This functionality was already available in the form
of the frame buffer-predicate parameter, which controls where functions
like next-buffer and other-buffer can land you.

The only thing I have to do myself, is check for the condition where
there are no more real buffers left to switch to, and in that case send
you to the fallback-buffer.
2018-02-02 20:47:31 -05:00
Henrik Lissner
5b19ad50a6
frame-title-format: just use filename
A blank buffer-file-name causes an error. Rather than overcomplicate
this, I'll just use %b.
2018-02-01 20:42:21 -05:00
Henrik Lissner
5b817727e2
Use more informative frame title 2018-02-01 20:14:27 -05:00
Henrik Lissner
005402efc0
Remove prompt if file is opened in other emacsclients 2018-02-01 19:58:44 -05:00
Henrik Lissner
2989296521
Use frame's buffer-predicate instead of doom/{next,previous}-buffer
doom/{next,previous}-buffer was implemented so that these commands could
skip over unreal buffers, and land us on either a real one or the
dashboard. Using the frame's buffer-predicate parameter accomplishes
exactly this, natively.
2018-02-01 19:58:43 -05:00
Henrik Lissner
893bb6b3f7
Revert unstyled mode-line flash prevention (unreliable) 2018-01-30 21:25:33 -05:00
Henrik Lissner
23f914916e
Refactor theme init across GUI, tty and daemon Emacs 2018-01-30 21:19:57 -05:00
Henrik Lissner
b88f28dbf8
Fix nlinum-relative-* void-function errors #376 2018-01-30 14:05:39 -05:00
Henrik Lissner
bcef66b947
Refactor doom/toggle-line-numbers; add doom-line-numbers-visual-style #376
doom-line-numbers-visual-style adds support for the visual
display-line-numbers mode by setting it to a non-nil value.
2018-01-30 03:31:32 -05:00
Henrik Lissner
64a674dcc9
Fix nlinum-relative line numbering #376
Fixed padding; now relative line numbers look consistent with its non-relative
counterpart.
2018-01-30 01:18:30 -05:00
Henrik Lissner
01787fc876
Change doom/toggle-line-numbers to cycle styles #376
Also fixes doom/toggle-line-numbers when doom-line-numbers-style is nil.
2018-01-30 01:10:58 -05:00
Henrik Lissner
bd443322a2
A slightly more efficient unstyled-mode-line fix 2018-01-29 19:34:06 -05:00
Henrik Lissner
4e908bd525
Minor refactor & correction 2018-01-29 17:39:08 -05:00
Henrik Lissner
0890826083
window-divider-default-bottom-width = 1 2018-01-29 17:09:09 -05:00
Henrik Lissner
735d129f92
Truly prevent unstyled mode-line flash at startup 2018-01-29 17:06:20 -05:00
Henrik Lissner
59f33855dd
Fix kill-this-buffer switching to fallback buffer too soon (again) 2018-01-18 23:08:26 -05:00
Henrik Lissner
d2bab1dc4d
Fix kill-this-buffer's dashboard addiction, the sequel
Again, the dashboard was being switched to too early (there were still
other real buffers to display).
2018-01-09 04:05:33 -05:00
Henrik Lissner
af37d430fb
Fix kill-this-buffer's dashboard addiction
Our kill-this-buffer advice, which tries to ensure the user will always
land on a real buffer after killing another, would prematurely jump to
the dashboard even though there were other available, real buffers.

Also fixes an issue where kill-this-buffer would get stuck switching
between the last buffers (because they aren't killed if they're visible
in other windows). If the only buffers left are visible in other
windows, it will now switch to the fallback buffer (dashboard or
scratch).
2018-01-08 19:32:53 -05:00