emacs add spellchecking
This commit is contained in:
@@ -31,7 +31,7 @@ case $TERM in
|
||||
function precmd {
|
||||
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.
|
||||
function preexec {
|
||||
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 '
|
||||
|
||||
# ============================== 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 ofen="cc"
|
||||
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
|
||||
|
||||
# ============================== Exports
|
||||
export EDITOR="vim"
|
||||
export VISUAL="vim"
|
||||
export LANG="en_US.UTF-8"
|
||||
export EDITOR="emacsnw"
|
||||
export VISUAL="emacsnw"
|
||||
|
||||
# ============================== Completion
|
||||
unsetopt menu_complete # do not autoselect the first completion entry
|
||||
|
||||
@@ -85,9 +85,11 @@
|
||||
(if (executable-find "hunspell")
|
||||
(use-package ispell
|
||||
:config
|
||||
(setq ispell-program-name "hunspell")
|
||||
(setq ispell-dictionary "de_DE,en_GB,en_US")
|
||||
(ispell-set-spellchecker-params)
|
||||
(ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US")
|
||||
(setq )
|
||||
:hook
|
||||
(org-mode . flyspell-mode)
|
||||
(markdown-mode . flyspell-mode)
|
||||
@@ -109,6 +111,12 @@
|
||||
:init (doom-modeline-mode 1)
|
||||
:custom ((doom-modeline-height 10)))
|
||||
|
||||
;; show #RGB color codes
|
||||
(use-package rainbow-mode
|
||||
:ensure t
|
||||
:hook
|
||||
(prog-mode . rainbow-mode))
|
||||
|
||||
;; icons
|
||||
(use-package all-the-icons
|
||||
:ensure t)
|
||||
@@ -227,6 +235,8 @@
|
||||
"oco" 'org-clock-out
|
||||
"oa" 'org-agenda
|
||||
"oca" 'org-capture)
|
||||
:hook
|
||||
(org-mode . (lambda () (electric-indent-local-mode -1)))
|
||||
:config
|
||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||
(setq org-agenda-files (quote ("~/org")))
|
||||
|
||||
Reference in New Issue
Block a user