Commit Graph

552 Commits

Author SHA1 Message Date
bfa6fce15f +popup/buffer: hide buffer being popped up #825 2018-08-23 17:12:49 +02:00
641cef9848 Refresh vc when magit refreshes #826
Magit does not inform vc that changes have occurred to open buffers.
This fixes that (and indirectly fixes branch display in the modeline).
2018-08-23 17:09:59 +02:00
e003c2aa6a Remove :load-path
Accidentally snuck into a commit!
2018-08-22 22:44:22 +02:00
dc9841b192 ui/modeline: refactor path builder & add other styles
This brings +doom-modeline-buffer-file-name styles to the new modeline
module, controlled by the +modeline-buffer-path-function variable.

The available functions are:

* +modeline-file-path-with-project: project/src/lib/file.c
* +modeline-file-path-from-project: src/lib/file.c
* +modeline-file-path-truncated-with-project: project/s/l/file.c
* +modeline-file-path-truncated-upto-project: ~/w/project/src/lib/file.c
* +modeline-file-path-truncated-upto-project-root: ~/w/p/s/lib/file.c
* +modeline-file-path-truncated: ~/w/p/s/l/file.c
* +modeline-file-name: file.c

The default is file-path-with-project.
2018-08-22 22:36:44 +02:00
6282526743 ui/modeline: fontify project root separately
And add new doom-modeline-buffer-project-root face.
2018-08-22 22:28:53 +02:00
ee73d6c9af Minor reformatting & comment tweaks 2018-08-21 03:34:39 +02:00
6ab9cf6460 Switch org-agenda-list for org-agenda on dashboard 2018-08-17 04:10:11 +02:00
c69543fecc Fix helm not cooperating with other popups
Like the compilation window
2018-08-15 23:32:53 +02:00
d692718ab4 Fix selecting deleted window error
Caused by focus/unfocus modeline fixes accessing possibly dead buffers.
2018-08-12 18:25:09 +02:00
a24e4f51cd ui/modeline: refocus after closing any posframe 2018-08-10 19:30:08 +02:00
3e7c85244b Improve modeline refocusing fixes
By affecting buffers instead of windows
2018-08-10 19:26:56 +02:00
519330fcb1 Fix wrong-type-argument: treemacs-workspace error
Caused by changes upstream.
2018-08-10 18:52:20 +02:00
b100fe332b Slightly larger default +modeline-height (23) 2018-08-10 14:13:48 +02:00
e33cb446aa Refactor dashboard banner display & centering 2018-08-10 12:34:17 +02:00
68dc510a1c Refactor +modeline-file-path
Remove unused letvars and face management.
2018-08-09 12:58:26 +02:00
78e4559465 Move mode-line-misc-info to front of :main rhs
This ensures any extraneous spacing it adds to the mode-line isn't
visible, without compromising plugins' ability to add information to
your modeline.
2018-08-07 22:52:02 +02:00
b349dd3473 ui/popup: respect org-src-window-setup 2018-08-07 14:44:10 +02:00
2a8b3e674a ui/modeline: refactor focus/unfocus logic
And improves integration with helm
2018-08-06 22:41:44 +02:00
4ab1bbbdba Fix 'simple mode for +treemacs-use-git-mode
Due to pattern mismatch, 'simple mode was never activated.
2018-08-06 22:41:43 +02:00
d01926a7c3 Fix void-function treemacs--is-visible? error 2018-08-06 11:18:26 +02:00
860dff3e63 completion/helm: refactor posframe config 2018-08-05 00:39:54 +02:00
c1e2919294 completion/helm: set default window height = 22%
A little smaller than the default
2018-08-04 18:42:29 +02:00
c4ec1413dc ui/treemacs: update function name
Due to change upstream
2018-08-04 12:18:54 +02:00
4489ce6b81 ui/popup: refactor hacks 2018-08-04 00:00:16 +02:00
4db89a2fb4 Remove treemacs popup hack
Now that it is supported upstream.

Relevant to #766
2018-08-03 19:15:46 +02:00
417736ecf6 Move hideshow config from ui/doom->emacs/hideshow 2018-08-03 18:20:27 +02:00
0b130d7b9a ui/modeline: fix spacing issues with flycheck/vc 2018-08-03 18:07:06 +02:00
76868fe48d ui/modeline: allow more options for bar 2018-08-03 18:06:44 +02:00
50a82e72f6 ui/doom: enable solaire-mode in doom-tomorrow-night 2018-08-03 16:35:42 +02:00
4731f82766 ui/modeline: disable no-checker flycheck indicator 2018-08-02 03:50:51 +02:00
d2ecd87739 Fix ivy completion when treemacs is open
Caused by incorrectly initialized treemacs popup hack.
2018-08-02 03:31:20 +02:00
e79111ff54 Eval +modeline-major-mode live
It's a small segment. We can afford it being a little more greedy.
2018-08-01 15:01:27 +02:00
4a14df9254 Add mode-line-process to :main & :special formats 2018-08-01 01:48:22 +02:00
0cdb736670 Default modeline segments to :init
Fixes buffer-id in non-file-visiting buffers.
2018-08-01 01:47:45 +02:00
8272d8e98f ui/modeline: rpad +modeline-flycheck 2018-08-01 01:14:36 +02:00
fb3d385211 ui/modeline: add flycheck segment 2018-07-31 18:40:54 +02:00
b3f2a8cd54 ui/modeline: minor refactor
Add +modeline-segment-active-p predicate function.
2018-07-31 18:40:30 +02:00
b62e40b10b ui/modeline: add +modeline-width option 2018-07-31 16:54:38 +02:00
70e0280db3 Don't byte-compile modeline format functions
Fixes unused lexical arg warnings when starting up.
2018-07-30 23:50:03 +02:00
59f869bf5e ui/modeline: update comments & benchmarks 2018-07-30 23:10:18 +02:00
1211c2c7f7 Fix incorrectly rendered icons in modeline #773
And possibly fix bytecomp warnings about unused lexical variables.
2018-07-30 23:00:35 +02:00
cbc59f9333 Appease the byte-compiler 2018-07-30 12:10:11 +02:00
55870458e6 Byte-compile mode-line segment :eval forms
Byte-compiled function calls are ~10% faster than evalling quoted forms.
2018-07-30 02:57:50 +02:00
1205db0f73 Decouple :modeline popup rule from modeline API
The :modeline property still takes:

  t => default modeline
  nil => no modeline (the default)

But now also accepts:

  function => uses its return value as the mode-line-format
  anything non-nil => used directly as the mode-line-format

This is to decouple the popup API from the modeline API. You can still
use them compositionally:

  (set-popup-rule "abc" :modeline (lambda () (set-modeline! :project)))
2018-07-30 02:57:50 +02:00
923093b263 Don't set buffer-read-only in +doom-dashboard-mode
This is already set by the parent mode, special-mode.
2018-07-29 19:31:33 +02:00
088480047c Polish & move new modeline into :ui modeline
Removes modeline library out of core-ui and contains them in :ui
doom-modeline and :ui modeline.

:ui modeline will eventually replace :ui doom-modeline, but is still
considered experimental. This update provides makes it much more stable
and closer to being feature complete.
2018-07-29 19:31:32 +02:00
9abafcf74a Rename def-modeline! -> def-modeline-format!
As to differentiate it from the old def-modeline! macro. This only
affects users of the +new modeline.
2018-07-29 17:41:55 +02:00
f58f3c3604 ui/nav-flash: refactor
+ Add +nav-flash-exclude-commands to control where
  +nav-flash-blink-cursor-maybe should not trigger nav-flash.
+ Rename API to conform to Doom naming conventions
  + +nav-flash-blink-cursor
  + +nav-flash-blink-cursor-maybe
  + +nav-flash|delayed-blink-cursor
  + +nav-flash|blink-cursor
  + +nav-flash|blink-cursor-maybe
  + +nav-flash*blink-cursor
2018-07-24 20:04:03 +02:00
399194e868 Autoload +popup--init
Fixes #766
2018-07-21 14:00:02 +02:00
28e21352ec Have popup manager handle treemacs windows
Other windows would be resized slightly incorrectly because treemacs
opens as a fixed split, rather than a side window. This change forces it
to be a side window, which resolves the problem _and_ restores the
functionality of balance-windows, which is disabled when a fixed split
is present.
2018-07-21 01:20:59 +02:00