add some emacs magic
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
+ light: background light control
|
+ light: background light control
|
||||||
+ pactl: volume control
|
+ pactl: volume control
|
||||||
+ playerctl: music player control
|
+ playerctl: music player control
|
||||||
|
+ hunspell{-de, en}: spellchecking for emacs
|
||||||
|
|
||||||
### emacs LSP
|
### emacs LSP
|
||||||
|
|
||||||
|
|||||||
21
files/.zshrc
21
files/.zshrc
@@ -43,21 +43,25 @@ esac
|
|||||||
export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} "
|
export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} "
|
||||||
zstyle ':vcs_info:git:*' formats '|%b '
|
zstyle ':vcs_info:git:*' formats '|%b '
|
||||||
|
|
||||||
# ============================== Exports
|
|
||||||
export EDITOR="TERM=alacritty-direct emacsclient -c -nw -a 'emacs -nw'"
|
|
||||||
export VISUAL="emacsclient -c -a emacs"
|
|
||||||
export LANG="en_US.UTF-8"
|
|
||||||
|
|
||||||
# ============================== Aliases
|
# ============================== Aliases
|
||||||
alias emacsnw="TERM=alacritty-direct emacsclient -nw -a 'emacs -nw'"
|
alias emacsnw="TERM=alacritty-direct emacsclient -nw -a 'emacs -nw'"
|
||||||
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"
|
||||||
|
|
||||||
if [[ -x $(which nvim 2> /dev/null) ]]; then
|
if command -v nvim &> /dev/null; then
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v rg &> /dev/null; then
|
||||||
|
alias grep="rg"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v btm &> /dev/null; then
|
||||||
|
alias top="btm"
|
||||||
|
alias htop="btm"
|
||||||
|
fi
|
||||||
|
|
||||||
alias sag="ssh-add ~/.ssh/github"
|
alias sag="ssh-add ~/.ssh/github"
|
||||||
|
|
||||||
alias s="cd ~/scripts/"
|
alias s="cd ~/scripts/"
|
||||||
@@ -75,6 +79,11 @@ if [ -f ~/.zshrc_local ]; then
|
|||||||
source ~/.zshrc_local
|
source ~/.zshrc_local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ============================== Exports
|
||||||
|
export EDITOR="vim"
|
||||||
|
export VISUAL="vim"
|
||||||
|
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
|
||||||
unsetopt flowcontrol
|
unsetopt flowcontrol
|
||||||
|
|||||||
@@ -81,6 +81,19 @@
|
|||||||
(exec-path-from-shell-copy-env "SSH_AUTH_SOCK")
|
(exec-path-from-shell-copy-env "SSH_AUTH_SOCK")
|
||||||
(exec-path-from-shell-copy-env "PATH")
|
(exec-path-from-shell-copy-env "PATH")
|
||||||
|
|
||||||
|
;; Spellchecker
|
||||||
|
(if (executable-find "hunspell")
|
||||||
|
(use-package ispell
|
||||||
|
:config
|
||||||
|
(setq ispell-dictionary "de_DE,en_GB,en_US")
|
||||||
|
(ispell-set-spellchecker-params)
|
||||||
|
(ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US")
|
||||||
|
:hook
|
||||||
|
(org-mode . flyspell-mode)
|
||||||
|
(markdown-mode . flyspell-mode)
|
||||||
|
(text-mode . flyspell-mode)
|
||||||
|
(prog-mode . flyspell-prog-mode)))
|
||||||
|
|
||||||
;; Themes and icons
|
;; Themes and icons
|
||||||
(use-package doom-themes
|
(use-package doom-themes
|
||||||
:ensure t
|
:ensure t
|
||||||
@@ -117,18 +130,19 @@
|
|||||||
:ensure t
|
:ensure t
|
||||||
:hook
|
:hook
|
||||||
(prog-mode . dtrt-indent-mode)
|
(prog-mode . dtrt-indent-mode)
|
||||||
|
(text-mode . dtrt-indent-mode)
|
||||||
|
(org-mode . dtrt-indent-mode)
|
||||||
(markdown-mode . dtrt-indent-mode))
|
(markdown-mode . dtrt-indent-mode))
|
||||||
|
|
||||||
;; auto parens
|
;; auto parens
|
||||||
(use-package smartparens
|
(use-package electric-pair
|
||||||
:ensure t
|
|
||||||
:diminish smartparens-mode
|
|
||||||
:config
|
:config
|
||||||
(require 'smartparens-config)
|
(setq electric-pair-open-newline-between-pairs nil)
|
||||||
(setq sp-highlight-pair-overlay nil) ;; to hide this fucking highlighting
|
|
||||||
:hook
|
:hook
|
||||||
(prog-mode . smartparens-mode)
|
(prog-mode . electric-pair-mode)
|
||||||
(markdown-mode . smartparens-mode))
|
(text-mode . electric-pair-mode)
|
||||||
|
(org-mode . electric-pair-mode)
|
||||||
|
(markdown-mode . electric-pair-mode))
|
||||||
|
|
||||||
;; general
|
;; general
|
||||||
(use-package general
|
(use-package general
|
||||||
@@ -217,6 +231,12 @@
|
|||||||
(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")))
|
||||||
(setq org-directory "~/org")
|
(setq org-directory "~/org")
|
||||||
|
(setq org-latex-listings 'minted
|
||||||
|
org-latex-packages-alist '(("" "minted"))
|
||||||
|
org-latex-pdf-process
|
||||||
|
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
|
||||||
|
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
|
||||||
|
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
|
||||||
:init
|
:init
|
||||||
(setq org-todo-keywords '((sequence "TODO" "PROGRESS" "|" "DONE")))
|
(setq org-todo-keywords '((sequence "TODO" "PROGRESS" "|" "DONE")))
|
||||||
(setq org-log-done 'time)
|
(setq org-log-done 'time)
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#+startup: beamer
|
#+startup: beamer
|
||||||
#+LaTeX_CLASS: beamer
|
#+LaTeX_CLASS: beamer
|
||||||
#+LaTeX_CLASS_OPTIONS: [presentation]
|
#+LaTeX_CLASS_OPTIONS: [presentation, smaller]
|
||||||
#+LANGUAGE: de
|
#+LANGUAGE: de
|
||||||
#+OPTIONS: toc:t H:2
|
#+OPTIONS: toc:t H:2
|
||||||
|
#+BEAMER_THEME: [width=.2\paperwidth]Hannover
|
||||||
|
|
||||||
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
|
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user