Commit graph

8 commits

Author SHA1 Message Date
Henrik Lissner
a76693c7e2
private/hlissner: general update 2017-08-06 16:29:33 +02:00
Henrik Lissner
69f963013b
Update private/hlissner init.el & bindings 2017-06-29 16:18:47 +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
5de14cb0b0
private/hlissner: refactor; revise keybinds
+ Add +jump/* to SPC h bindings
+ Generalize jump-to-bookmark
  To use ivy/helm specific jump-to-bookmark (like counsel-bookmark),
  better to remap bookmark-jump from their modules.
+ SPC f c => open .editorconfig
2017-06-20 16:32:51 +02:00
Henrik Lissner
14968380ff
Move x-*-keysym defs to private init.el 2017-06-09 19:45:06 +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
d62f446dc3
General cleanup + refactor; revise docstrings 2017-06-05 16:45:19 +02:00
Henrik Lissner
b82ace43ea Autoload private module & add private init.el (#88) 2017-06-05 12:35:51 +02:00