emacs add spellchecking
This commit is contained in:
@@ -31,7 +31,7 @@ case $TERM in
|
|||||||
function precmd {
|
function precmd {
|
||||||
print -Pn "\e]0;%(1j,%j job%(2j|s|) - ,)%~ - $TERM\a"
|
print -Pn "\e]0;%(1j,%j job%(2j|s|) - ,)%~ - $TERM\a"
|
||||||
}
|
}
|
||||||
# Write command and args to terminal title.
|
# Write command and arguments to terminal title.
|
||||||
# This is seen while the shell waits for a command to complete.
|
# This is seen while the shell waits for a command to complete.
|
||||||
function preexec {
|
function preexec {
|
||||||
printf "\033]0;%s\a" "$1 - $TERM"
|
printf "\033]0;%s\a" "$1 - $TERM"
|
||||||
@@ -44,7 +44,7 @@ export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} "
|
|||||||
zstyle ':vcs_info:git:*' formats '|%b '
|
zstyle ':vcs_info:git:*' formats '|%b '
|
||||||
|
|
||||||
# ============================== Aliases
|
# ============================== Aliases
|
||||||
alias emacsnw="TERM=alacritty-direct emacsclient -nw -a 'emacs -nw'"
|
alias emacsnw="TERM=alacritty-direct emacsclient -nw -a 'vim'"
|
||||||
alias fontscache="fc-cache -f -v"
|
alias fontscache="fc-cache -f -v"
|
||||||
alias ofen="cc"
|
alias ofen="cc"
|
||||||
alias mon2cam="deno run --unstable -A -r -q https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/src/mod.ts"
|
alias mon2cam="deno run --unstable -A -r -q https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/src/mod.ts"
|
||||||
@@ -80,9 +80,8 @@ if [ -f ~/.zshrc_local ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ============================== Exports
|
# ============================== Exports
|
||||||
export EDITOR="vim"
|
export EDITOR="emacsnw"
|
||||||
export VISUAL="vim"
|
export VISUAL="emacsnw"
|
||||||
export LANG="en_US.UTF-8"
|
|
||||||
|
|
||||||
# ============================== Completion
|
# ============================== Completion
|
||||||
unsetopt menu_complete # do not autoselect the first completion entry
|
unsetopt menu_complete # do not autoselect the first completion entry
|
||||||
|
|||||||
@@ -85,9 +85,11 @@
|
|||||||
(if (executable-find "hunspell")
|
(if (executable-find "hunspell")
|
||||||
(use-package ispell
|
(use-package ispell
|
||||||
:config
|
:config
|
||||||
|
(setq ispell-program-name "hunspell")
|
||||||
(setq ispell-dictionary "de_DE,en_GB,en_US")
|
(setq ispell-dictionary "de_DE,en_GB,en_US")
|
||||||
(ispell-set-spellchecker-params)
|
(ispell-set-spellchecker-params)
|
||||||
(ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US")
|
(ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US")
|
||||||
|
(setq )
|
||||||
:hook
|
:hook
|
||||||
(org-mode . flyspell-mode)
|
(org-mode . flyspell-mode)
|
||||||
(markdown-mode . flyspell-mode)
|
(markdown-mode . flyspell-mode)
|
||||||
@@ -109,6 +111,12 @@
|
|||||||
:init (doom-modeline-mode 1)
|
:init (doom-modeline-mode 1)
|
||||||
:custom ((doom-modeline-height 10)))
|
:custom ((doom-modeline-height 10)))
|
||||||
|
|
||||||
|
;; show #RGB color codes
|
||||||
|
(use-package rainbow-mode
|
||||||
|
:ensure t
|
||||||
|
:hook
|
||||||
|
(prog-mode . rainbow-mode))
|
||||||
|
|
||||||
;; icons
|
;; icons
|
||||||
(use-package all-the-icons
|
(use-package all-the-icons
|
||||||
:ensure t)
|
:ensure t)
|
||||||
@@ -227,6 +235,8 @@
|
|||||||
"oco" 'org-clock-out
|
"oco" 'org-clock-out
|
||||||
"oa" 'org-agenda
|
"oa" 'org-agenda
|
||||||
"oca" 'org-capture)
|
"oca" 'org-capture)
|
||||||
|
:hook
|
||||||
|
(org-mode . (lambda () (electric-indent-local-mode -1)))
|
||||||
:config
|
:config
|
||||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||||
(setq org-agenda-files (quote ("~/org")))
|
(setq org-agenda-files (quote ("~/org")))
|
||||||
|
|||||||
Reference in New Issue
Block a user