Commit graph

81 commits

Author SHA1 Message Date
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
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
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
Henrik Lissner
14b3228dfb Remove visual bell fn (doom-themes offers this now) 2017-06-05 12:35:51 +02:00
Henrik Lissner
10ea06b661 General cleanup + refactor 2017-05-25 20:12:43 +02:00
Henrik Lissner
733042cb7f Refactor anzu--reset-status hooks 2017-05-25 12:12:38 +02:00
Henrik Lissner
656452df00 General cleanup & refactor; update TODO 2017-05-19 17:21:52 +02:00
Henrik Lissner
03ebdf7855 ui/doom-modeline: revise face defs (to match doom-themes update) 2017-05-17 18:27:02 +02:00
Henrik Lissner
721b26d9f3 ui/doom-modeline: set special modeline for image buffers 2017-05-16 18:05:39 +02:00
Henrik Lissner
994978bc0b ui/doom-modeline: tweak mode-line faces & formatting 2017-05-16 18:05:39 +02:00
Henrik Lissner
3c8acec33f ui/doom-modeline: fix {dir,file}-path variable errors 2017-05-15 20:26:32 +02:00
Henrik Lissner
25fa4e019c General refactor & cleanup
+ refactor package management
+ core-editor: describe ediff
+ core-popups: alphabetized hack blocks
+ ui/doom-modeline: refactor buffer path fn
+ feature/version-control/+git: autoload magit-blame
2017-05-14 09:56:32 +02:00
Henrik Lissner
af88423b35 ui/doom-modeline: fix symlinked buffer-path hijinks
The modeline resolves a relative path to the current file in order to
display a short path string in the modeline. However, symlinks would
break this, resulting in paths like: ../../../../real/path/to/file.
2017-05-14 09:52:27 +02:00
Henrik Lissner
125fca09a0 ui/doom-modeline: don't show uniquify in modeline (unnecessary cruft) 2017-05-14 09:46:48 +02:00
Henrik Lissner
b86634e79f ui/doom-modeline: fontify path separately from filename 2017-05-14 00:23:18 +02:00
Henrik Lissner
c118f22184 ui/doom-modeline: refactor eldoc segment 2017-05-13 11:42:19 +02:00
Henrik Lissner
e265431507 General refactor, cleanup & commenting 2017-05-10 05:28:50 +02:00
Henrik Lissner
cce294fcf6 feature/evil: refactor evil-force-normal-state advice into +evil-esc-hook 2017-05-07 19:12:48 +02:00
Henrik Lissner
d651311d1d Various tweaks & clean up 2017-05-01 14:52:29 -04:00
Henrik Lissner
8e7aa152bb doom-modeline no longer errors out, in case a modeline doesn't exist; add doom-set-modeline 2017-04-25 18:25:54 -04:00