Commit Graph

323 Commits

Author SHA1 Message Date
Henrik Lissner
6dff6e124b
Bring back nlinum-hl
I moved the nlinum--region fix to the nlinum-hl package; which also
contains fixes for other problematic major-modes.
2017-06-14 02:51:24 +02:00
Henrik Lissner
e5a04e512f
core-ui: refactor echo-keystrokes hooks 2017-06-12 01:41:55 +02:00
Henrik Lissner
38f9e4b0a6
Fix delete-frame => doom/delete-frame remap 2017-06-12 01:41:54 +02:00
Henrik Lissner
4984a548d1
Refactor DOOM init & add new init hooks
+ Add doom-init-hook and doom-post-init-hook to simplify Emacs init
  hooks into less ambiguous ones.
+ Attach former after-init-hook and emacs-startup-hook hooks to new doom
  init hooks.
+ Vastly improves daemon and tty support: preventing incorrect colors
  from bleeding across face class barriers, and into GUI Emacs and vice
  versa, when spawned with emacsclient.
+ Fix persp-mode breaking Emacs daemon, and ensuring that initialization
  is done properly in terminal Emacs (and emacsclient frames).
2017-06-12 00:37:14 +02:00
Henrik Lissner
66cfbb2563
Fix quit confirmations in daemon; add for frames
+ Add quit confirmation when closing a frame with real buffers
+ Ensure quit confirmations also work in daemon frames (tty or gui)
2017-06-11 16:24:49 +02:00
Henrik Lissner
c5f2879927
core-ui: optimize hooks 2017-06-10 01:54:59 +02:00
Henrik Lissner
6d2a7e22b3
Fix typo in nlinum--region advice 2017-06-09 14:20:45 +02:00
Henrik Lissner
7ba22d0d86
Possibly fix disappearing line numbers (#59) 2017-06-09 13:48:28 +02:00
Henrik Lissner
f071e55dc0
Enable nlinum-highlight-current-line 2017-06-09 01:09:19 +02:00
Henrik Lissner
e165450903
Refactor fringe-helper config 2017-06-09 01:09:19 +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
4aece988ff
Add fringe-helper to core-ui 2017-06-07 14:32:34 +02:00
Henrik Lissner
861cc537cc Add nlinum-hl 2017-06-05 12:35:51 +02:00
Henrik Lissner
60a02b4792 Fix lingering hl-line overlays 2017-06-05 12:35:51 +02:00
Henrik Lissner
cbf9f7a079 Move window-divider-mode from ui/doom => core-ui 2017-06-05 12:35:51 +02:00
Henrik Lissner
30402495fe General refactor + cleanup 2017-06-05 12:35:51 +02:00
Henrik Lissner
ee1fc701b9
Check for tool-bar-mode (fix 25.1 travis test) 2017-06-04 21:28:19 +02:00
Henrik Lissner
9967284977 Disable toolbar even in tty 2017-06-03 12:05:43 +02:00
Henrik Lissner
e8d454a251 Add doom-ui-mode-names for renaming major-modes 2017-05-28 16:13:55 +02:00
Henrik Lissner
e3162c453a Improve stability of nlinum flushing 2017-05-28 15:39:36 +02:00
Henrik Lissner
8ca6e2630b Bring back nlinum
linum-mode *really* slows down buffers when they're displayed in more
than one window. This lag isn't present in nlinum. nlinum isn't perfect
either but... lesser of two evils.

This includes advisors and an ESC hook to mitigate the issue of
disappearing nlinum line numbers.
2017-05-28 02:48:20 +02:00
Henrik Lissner
f148d67607 Add pos-tip settings 2017-05-16 22:21:55 +02:00
Henrik Lissner
5475ec372a Reduce show-paren-delay 2017-05-16 00:49:42 +02:00
Henrik Lissner
f49a507ec8 feature/evil: new code-folding system 2017-05-15 20:26:33 +02:00
Henrik Lissner
5fb028b49d feature/evil: refactor 2017-05-15 20:26:32 +02:00
Henrik Lissner
7b1687170f core-ui: be quiet linum-mode 2017-05-14 13:33:16 +02:00
Henrik Lissner
653e80e655 Fix missing 'define-fringe-bitmap' function errors
If Emacs wasn't built with X, Cocoa or NS display support (as is the
case for evm emacs-25.1-travis build), the fringe library is missing and
throws errors.
2017-05-14 11:54:18 +02:00
Henrik Lissner
527c459f11 core-ui: uniquify-buffer-name-style = forward
Uniquify's effect is invisible except in places where buffer-name is
used (like in switch-buffer), where it can be very helpful to
distinguish between clashing buffers.
2017-05-14 09:44:22 +02:00
Henrik Lissner
200846ee35 General refactor + cleanup; update TODO.org 2017-05-14 00:26:53 +02:00
Henrik Lissner
435c414e18 core-ui: add vi-tilde-fringe 2017-05-14 00:20:00 +02:00
Henrik Lissner
5c39e9f3bc core-ui: disable hl-line in visual mode 2017-05-14 00:19:45 +02:00
Henrik Lissner
5491fd552e Replace nlinum with linum 2017-05-13 22:40:52 +02:00
Henrik Lissner
7713cdb0bd core-ui: hide modeline in completion-list popups 2017-05-13 22:37:37 +02:00
Henrik Lissner
47ec65fdc6 ui/doom: polish+refactor git-gutter-fringe bitmaps 2017-05-13 13:31:36 +02:00
Henrik Lissner
b2d19eac32 Fix disappearing modeline due to loss of state 2017-04-25 22:55:57 -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
bce475df4a core-ui: fix whitespace voodoo for highlight-indentation-current-column-mode 2017-04-21 15:56:50 -04:00
Henrik Lissner
9e084c18ba core-ui: fix doom-hide-modeline-mode resetting on major-mode changes 2017-04-18 05:09:15 -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
3f40e02278 visual-fill-column: don't center by default 2017-04-08 01:30:05 -04:00
Henrik Lissner
b5486e780e core-ui: fix nlinum overlays after font changes 2017-04-07 20:04:21 -04:00
Henrik Lissner
97dda290d9 core-ui: mouse-yank-at-point = t 2017-04-07 19:24:58 -04:00
Henrik Lissner
5d597101e7 Replace highlight-indent-guides-mode with highlight-indentation 2017-03-25 03:15:37 -04:00
Henrik Lissner
b37aadec91 General cleanup + refactor 2017-03-23 19:49:58 -04:00
Henrik Lissner
a127952f70 core-ui: x-stretch-cursor = nil 2017-03-09 00:47:35 -05:00
Henrik Lissner
49ccdd3349 core-ui: better visual-fill-column defaults 2017-03-08 14:41:49 -05:00
Henrik Lissner
a2ca5fb446 core-ui: add visual-fill-column 2017-03-06 19:06:59 -05:00
Henrik Lissner
d6667a433f General cleanup + refactor 2017-03-04 20:54:13 -05:00
Henrik Lissner
beb92b0e97 core-ui: clean up + refactor modeline functions/macros 2017-03-04 00:28:16 -05:00