Skip to content
Snippets Groups Projects
Commit 12022cbd authored by Liu Miao's avatar Liu Miao
Browse files

setup wrap category

parent f1cd91af
No related branches found
No related tags found
No related merge requests found
......@@ -53,14 +53,15 @@
(setq-default fill-column 80)
;; Word wrap by category. Break up for CJK.
(setq-default word-wrap t)
(setq-default truncate-lines t)
(setq-default word-wrap-by-category t)
;; Default to soft line-wrapping in text modes.
(add-hook 'text-mode-hook #'visual-line-mode)
;; truncate-lines only on prog mode.
;; truncate-lines only on prog mode. Then it will not break lines.
(setq-default truncate-lines t)
(add-hook 'prog-mode-hook (lambda () (setq truncate-lines t)))
(unless (assq 'menu-bar-lines default-frame-alist)
......
......@@ -75,6 +75,8 @@
"wv" 'evil-window-vsplit
"w-" 'evil-window-split
"wd" 'evil-window-delete
"w1" 'delete-other-windows
"w0" 'delete-window
;;
"<SPC>" 'execute-extended-command
;; Files
......@@ -82,7 +84,7 @@
"fs" 'save-buffer
"fS" 'evil-write-all
;; Buffers
"bd" 'kill-buffer
"bd" 'kill-this-buffer
"bn" 'next-buffer
"bp" 'previous-buffer
"bx" 'kill-buffer-and-window)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment