Commit Graph

101 Commits

Author SHA1 Message Date
Henrik Lissner
d01deb5545
ui/doom-modeline: minor refactor 2018-01-31 05:03:28 -05:00
Henrik Lissner
6b453962d7
ui/doom-modeline: silent xpm errors in tty emacs 2018-01-31 05:00:08 -05:00
Henrik Lissner
c52cb38385
ui/doom-modeline: refactor flycheck segment (faster) 2018-01-31 04:24:51 -05:00
Henrik Lissner
50ce083696
ui/doom-modeline: add word-count to selection segment #364
Controlled by the buffer-local variable
+doom-modeline-enable-word-count. Use +doom-modeline|enable-word-count
to enable it in certain modes. By default, this is enabled in text-mode
derived buffers.
2018-01-31 04:23:20 -05:00
Henrik Lissner
3146513442
ui/doom-modeline: define bar once
A little faster (and simpler) than memoizing the xpm generator.
2018-01-28 21:38:19 -05:00
Henrik Lissner
cd6fb816fd
ui/doom-modeline: set modeline sooner
This may address scenarios where the modeline is unset, especially in
terminal Emacs sessions (like when emacs -nw is your EDITOR).
2018-01-28 16:50:32 -05:00
Henrik Lissner
6790d666e0
ui/doom-modeline: init on doom-init-theme-hook
Initialize modeline with the theme.
2018-01-15 00:40:24 -05:00
Henrik Lissner
c586eee602
ui/doom-modeline: don't forcibly hide modeline in org-src-mode 2018-01-07 05:56:02 -05:00
Henrik Lissner
a5bb69cf6a
Ensure *Messages* and *scratch* have a modeline 2018-01-07 00:35:23 -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
76a4ae459d
Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
Henrik Lissner
4a504a07aa
ui/doom-modeline: remove all-the-icons-scale-factor let-bindings #278 2017-12-09 14:51:33 -05:00
Henrik Lissner
f8e8dbad8f
General minor refactor 2017-12-08 23:14:12 -05:00
Henrik Lissner
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
Henrik Lissner
0e0f3d62a2
ui/doom-modeline: minor refactor of paths 2017-11-08 22:51:55 +01:00
Henrik Lissner
efac883648 Merge branch 'master' into develop
* master:
  autoload evil-anzu when doing evil-ex-search-word*
  When calling +vcs-root, load git-link first.
2017-11-06 00:53:48 +01:00
Henrik Lissner
c45e2c4918
General & minor refactor+cleanup 2017-11-05 19:54:44 +01:00
Amos Bird
ca1b188ed7 autoload evil-anzu when doing evil-ex-search-word* 2017-10-26 04:36:19 -05:00
Henrik Lissner
eac0adff8a
Fix modeline duplication in buffer-file-name :help-echo 2017-10-05 01:27:46 +02:00
Henrik Lissner
a2c2ee3246
Add 'relative-from-project option for +doom-modeline-buffer-file-name-style 2017-10-05 01:16:32 +02:00
Henrik Lissner
e69ed84e8a
ui/doom-modeline: propertize plain buffer names 2017-10-03 02:58:09 +02:00
Henrik Lissner
b7ca13f45d
Move dashboard modeline setup to ui/doom-modeline 2017-09-29 04:00:42 +02:00
Henrik Lissner
fde07ba5df
Show modified status in scratch buffer modeline 2017-09-27 00:00:30 +02:00
Henrik Lissner
b60286d909
modeline: buffer-project => buffer-default-directory 2017-09-26 19:36:17 +02:00
Henrik Lissner
738d85e84f
Let python/ruby modules handle version strings
Also, set RBENV_VERSION and PYENV_VERSION envvars.
2017-09-26 01:02:47 +02:00
Henrik Lissner
c7d63fe091
Set special modeline in scratch buffer 2017-09-25 03:03:00 +02:00
Henrik Lissner
f6f335ee14
doom-modeline: minor refactor 2017-09-12 14:53:40 +02:00
Henrik Lissner
1a8e3a04f3
Fix mode-line face & byte-compiler warnings
Fixes #184
2017-09-04 00:38:57 +02:00
Henrik Lissner
d2d71795e5 Merge branch 'develop'
* develop: (64 commits)
  Prepare for v2.0.5
  Temporarily disable doom-themes-visual-bell-config
  Fix neotree always changing root
  Update changelog
  Fix wrong-type-argument error from +org/insert-item
  Make +ivy-buffer-transformer autoloadable
  General refactor & cleanup
  Correct troubleshooting link in README
  org: set org-ellipsis to downward chevron
  Add elfeed-(show|search)-mode to evil-snipe-disabled-modes
  Autoload json library
  Rethink smartparens config #181
  README: expand troubleshooting
  Fix wiki links in README (again)
  Correct intro in README
  Fix wiki links in README
  Prevent private commands from affecting projectile cache
  Remove recentf-filename-handlers fix for projectile-recentf-files
  lang/sh: remove unused setup.sh
  Convert +ivy/switch-buffer to transformers + add mode icons #169
  ...
2017-09-03 23:32:23 +02:00
Henrik Lissner
cbabf6849c
Standardize module READMEs 2017-08-21 20:13:31 +02:00
Benjamin Andresen
5879ca8517 Add: ui/doom-modeline: get shrink-path from MELPA 2017-08-13 17:19:48 +02:00
Benjamin Andresen
1e07c3d97f Fix: ui/doom-modeline: cleanups to file-name style 'file-name and 'relative-to-project 2017-08-12 00:52:55 +02:00
Benjamin Andresen
d4b3b050d3 Add: ui/doom-modeline: make buffer-file-name display configurable
Introduced variable +doom-modeline-buffer-file-name-style

The options available now:
(Given ~/Projects/FOSS/emacs/lisp/comint.el)

'truncate-upto-project => ~/P/F/emacs/lisp/comint.el
'truncate-upto-root => ~/P/F/e/lisp/comint.el
'truncate-all => ~/P/F/e/l/comint.el
'relative-to-project => lisp/comint.el
'file-name => comint.el
2017-08-12 00:29:26 +02:00
Benjamin Andresen
85a085ca2f
Add: ui/doom-modeline: show project-root but truncated 2017-08-11 17:30:52 +02:00
Benjamin Andresen
94e5fda871 Fix: ui/doom-modeline: segment bar has to return "" in any case to not break -nw
Amoriello found this fix in issue #170
2017-08-11 17:27:04 +02:00
Henrik Lissner
c34620f20f
ui/doom-modeline: update README
Improve instructions in "extracting my modeline" as discussed in #136.
2017-07-02 16:49:07 +02:00
Henrik Lissner
06b5ee8fb8
Refactor ui/doom-modeline 2017-07-02 16:48:31 +02:00
Henrik Lissner
ba7bc03cf6
Add an icon to modeline for narrowed buffers 2017-06-28 17:38:15 +02:00
Henrik Lissner
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
Henrik Lissner
a04d4a6352
Add buffer-file-name check to vcs segment #130 2017-06-28 12:26:50 +02:00
Henrik Lissner
392c58ea47
General refactor & cleanup 2017-06-19 00:32:45 +02:00
Henrik Lissner
7d081c3154
Fix subr-x macro autoloads 2017-06-18 23:43:08 +02:00
Henrik Lissner
a299621ff8
Adjust v-adjust of flycheck icons in modeline
Some icons drooped too low (and others too high).

OCD INTENSIFIES
2017-06-18 23:43:02 +02:00
Henrik Lissner
79fbe56b76 modeline: tweak modified icon v-adjust 2017-06-17 22:43:59 +02:00
Henrik Lissner
523fa5088e
Tweak & reorder modeline segments
+ Improves modeline appearance in terminal Emacs
+ Moves version control branch to righter-most edge to minimize uneven
  spacing when all-the-icon icons are present (due to their non-uniform
  widths).
+ Switches from octicon to material iconset for flycheck segment (more
  consistent and look better).
2017-06-14 21:16:02 +02:00
Henrik Lissner
7f76dabfd0
Use 'special' modeline in circe-mode (#103) 2017-06-12 14:31:41 +02:00
Henrik Lissner
571b5c55d8
Add buffer-info-simple modeline segment 2017-06-12 14:31:12 +02:00
Henrik Lissner
58b77716c9
Move all-the-icons to core-ui 2017-06-09 01:09:19 +02:00
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
Henrik Lissner
baad7953bf
Breaking change: rewrite add-transient-hook!
HOOK is now evaluated. Hooks should be quoted (and functions
sharp-quoted).

This also fixes commit 0150f78e.
2017-06-05 16:43:14 +02:00