Added shortcuts and aggresive-indent-mode

This commit is contained in:
Phuntsok Drak-pa 2019-09-26 16:51:14 +02:00
parent 7f573e8826
commit 75f2889d0f

View File

@ -626,7 +626,8 @@ dump."
epa-pinentry-mode 'loopback epa-pinentry-mode 'loopback
paragraph-start "\f\\|[ \t]*$\\|[ \t]*[-+*] " paragraph-start "\f\\|[ \t]*$\\|[ \t]*[-+*] "
python-shell-completion-native-disabled-interpreters '("python") python-shell-completion-native-disabled-interpreters '("python")
wttrin-default-cities '("Aubervilliers" "Paris" "Lyon" "Nonières" wttrin-default-cities '("Aubervilliers" "Paris"
"Lyon" "Nonières"
"Saint Agrève") "Saint Agrève")
prettify-symbols-alist '(("lambda" . 955) ; λ prettify-symbols-alist '(("lambda" . 955) ; λ
("->" . 8594) ; → ("->" . 8594) ; →
@ -652,6 +653,7 @@ dump."
org-mode-hook org-mode-hook
text-mode-hook text-mode-hook
markdown-mode-hook)) markdown-mode-hook))
(global-aggressive-indent-mode 1)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Nov-mode ; ; Nov-mode ;
@ -661,8 +663,10 @@ dump."
(face-remap-add-relative 'variable-pitch :family "Charis SIL" (face-remap-add-relative 'variable-pitch :family "Charis SIL"
:size 16 :size 16
:height 1.0)) :height 1.0))
(add-hook 'nov-mode-hook 'my-nov-font-setup) (mapc (lambda (mode)
(add-hook 'nov-mode-hook 'visual-line-mode) (add-hook 'nov-mode-hook mode))
'('my-nov-font-setup
'visual-line-mode))
(setq nov-text-width 80) (setq nov-text-width 80)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -716,6 +720,7 @@ dump."
(spacemacs/declare-prefix "oote" "expand") (spacemacs/declare-prefix "oote" "expand")
(spacemacs/declare-prefix "oots" "shrink") (spacemacs/declare-prefix "oots" "shrink")
(spacemacs/declare-prefix "or" "external command") (spacemacs/declare-prefix "or" "external command")
(spacemacs/declare-prefix "ot" "toggle")
(spacemacs/declare-prefix "ow" "writeroom") (spacemacs/declare-prefix "ow" "writeroom")
(spacemacs/set-leader-keys (spacemacs/set-leader-keys
"oac" 'calc "oac" 'calc
@ -744,6 +749,8 @@ dump."
"owi" 'writeroom-increase-width "owi" 'writeroom-increase-width
"or" 'helm-run-external-command "or" 'helm-run-external-command
"os" 'prettify-symbols-mode "os" 'prettify-symbols-mode
"oti" 'toggle-input-method
"otI" 'set-input-method
"owd" 'writeroom-decrease-width) "owd" 'writeroom-decrease-width)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;