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
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