diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-06-18 10:31:29 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-06-18 10:31:29 +0800 |
commit | f6778b1a95fb1240f602ac1ee517462bbfc60615 (patch) | |
tree | ffc91bb344c65d712a844238f0681b3a1f32ea05 /_spacemacs.d | |
parent | c3467ab08d162ed73a4bd511644a4e747c5488af (diff) | |
download | dotfiles-f6778b1a95fb1240f602ac1ee517462bbfc60615.tar.bz2 |
spacemacs: enable visual-line-navigation; minor cleanup
Diffstat (limited to '_spacemacs.d')
-rw-r--r-- | _spacemacs.d/init.el | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/_spacemacs.d/init.el b/_spacemacs.d/init.el index 4c4b4e4..068add5 100644 --- a/_spacemacs.d/init.el +++ b/_spacemacs.d/init.el @@ -11,7 +11,7 @@ ;; ;; Aaron LI ;; Created: 2016-04-30 -;; Updated: 2016-06-17 +;; Updated: 2016-06-18 ;; @@ -310,25 +310,27 @@ ;; Change the symbols used for different whitespace characters (setq whitespace-display-mappings ;; All numbers are Unicode codepoint in decimal. - ;; Try `(insert-char 182)' to see it. - '((space-mark 32 [183] [46]) ; 32 SPACE, 183 MIDDLE DOT 「·」, 46 FULL STOP 「.」 - (newline-mark 10 [182 10]) ; 10 LINE FEED - (tab-mark 9 [9655 9] [92 9]) ; 9 TAB, 9655 WHITE RIGHT-POINTING TRIANGLE 「▷」 + ;; Try `(insert-char <number>)' to see it. + ;; 9: tab; 10: line feed; 32: space; 46: full stop 「.」 + ;; 183: middle dot 「·」; 9655: white right-pointing triangle 「▷」 + '((space-mark 32 [183] [46]) + (newline-mark 10 [182 10]) + (tab-mark 9 [9655 9] [92 9]) )) ;; Highlight the line part that goes beyond `whitespace-line-column' (setq whitespace-line-column fill-column) (global-whitespace-mode) ;; - ;; Enable `company' globally + ;; Enable `company-mode' globally (global-company-mode) - ;; Complete by typing instead of waiting for the delay timer (setq company-idle-delay 0.1) ;; - ;; Wrap long lines - ;; Credit: https://emacs.stackexchange.com/a/19364 - (spacemacs/toggle-truncate-lines-off) ;; Wrap long lines at the space or tab character (setq-default word-wrap t) + ;; Wrap long lines & visual line navigation + ;; Credit: https://emacs.stackexchange.com/a/19364 + (spacemacs/toggle-truncate-lines-off) + (spacemacs/toggle-visual-line-navigation-on) ;; ;; Change `powerline' separator (setq powerline-default-separator nil) |