Commit Graph

68 Commits

Author SHA1 Message Date
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
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
e1f60b2bfd Update READMEs & add new ones 2017-05-25 20:09:12 +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
Henrik Lissner
e57ba47c5a General cleanup + refactor 2017-04-17 16:54:31 -04:00
Henrik Lissner
0e7254d312 General cleanup + refactor 2017-04-17 02:20:07 -04:00
Henrik Lissner
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
Henrik Lissner
4b46475fc6 ui/doom-modeline: define special modeline, apply to org-src-mode-hook 2017-04-10 02:54:20 -04:00
Henrik Lissner
3506602a4b ui/doom-modeline: factor our subr-x dependency (string-empty-p) 2017-04-09 22:10:18 -04:00
Henrik Lissner
3e63d2d23b Reduce def-package magic; explicitly use :when property 2017-03-19 22:47:50 -04:00
Henrik Lissner
94459852c7 ui/doom-modeline: fix anzu segment persisting across files/buffers 2017-03-17 22:52:02 -04:00
Henrik Lissner
e88ad7f710 ui/doom-modeline: refactor 2017-03-05 16:10:21 -05:00
Henrik Lissner
5184c3ec35 ui/doom-modeline: general refactor (especially anzu segment) 2017-03-05 13:33:04 -05:00
Henrik Lissner
dc3687920a ui/doom-modeline: memoize +doom-ml-icon 2017-03-04 00:01:22 -05:00
Henrik Lissner
56170954c3 ui/doom-modeline: add docstrings 2017-03-03 17:50:58 -05:00
Henrik Lissner
f4a3f54ee6 ui/doom-modeline: display filesize when matches segment is empty 2017-03-03 17:50:43 -05:00
Henrik Lissner
ebf85fe0a8 ui/doom-modeline: fix current index in iedit segment 2017-03-03 17:50:22 -05:00
Henrik Lissner
fcb88ef940 ui/doom-modeline: support emacs macros in macro display segment 2017-03-03 17:49:30 -05:00
Henrik Lissner
68c172dd92 ui/doom-modeline: refactor selection-info segment 2017-03-03 16:53:16 -05:00