diff --git a/README.md b/README.md index 14ff4bf..09e74fc 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ + light: background light control + pactl: volume control + playerctl: music player control ++ hunspell{-de, en}: spellchecking for emacs ### emacs LSP diff --git a/files/.zshrc b/files/.zshrc index 3475c38..52ebc5d 100644 --- a/files/.zshrc +++ b/files/.zshrc @@ -43,21 +43,25 @@ esac export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} " 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 alias emacsnw="TERM=alacritty-direct emacsclient -nw -a 'emacs -nw'" 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" -if [[ -x $(which nvim 2> /dev/null) ]]; then +if command -v nvim &> /dev/null; then alias vim="nvim" 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 s="cd ~/scripts/" @@ -75,6 +79,11 @@ if [ -f ~/.zshrc_local ]; then source ~/.zshrc_local fi +# ============================== Exports +export EDITOR="vim" +export VISUAL="vim" +export LANG="en_US.UTF-8" + # ============================== Completion unsetopt menu_complete # do not autoselect the first completion entry unsetopt flowcontrol diff --git a/files/init.el b/files/init.el index cd9e209..9d45c06 100644 --- a/files/init.el +++ b/files/init.el @@ -81,6 +81,19 @@ (exec-path-from-shell-copy-env "SSH_AUTH_SOCK") (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 (use-package doom-themes :ensure t @@ -117,18 +130,19 @@ :ensure t :hook (prog-mode . dtrt-indent-mode) + (text-mode . dtrt-indent-mode) + (org-mode . dtrt-indent-mode) (markdown-mode . dtrt-indent-mode)) ;; auto parens -(use-package smartparens - :ensure t - :diminish smartparens-mode +(use-package electric-pair :config - (require 'smartparens-config) - (setq sp-highlight-pair-overlay nil) ;; to hide this fucking highlighting + (setq electric-pair-open-newline-between-pairs nil) :hook - (prog-mode . smartparens-mode) - (markdown-mode . smartparens-mode)) + (prog-mode . electric-pair-mode) + (text-mode . electric-pair-mode) + (org-mode . electric-pair-mode) + (markdown-mode . electric-pair-mode)) ;; general (use-package general @@ -217,6 +231,12 @@ (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)) (setq org-agenda-files (quote ("~/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 (setq org-todo-keywords '((sequence "TODO" "PROGRESS" "|" "DONE"))) (setq org-log-done 'time) diff --git a/files/org/presentations.org b/files/org/presentations.org index ec5fc80..f64b01c 100644 --- a/files/org/presentations.org +++ b/files/org/presentations.org @@ -1,8 +1,9 @@ #+startup: beamer #+LaTeX_CLASS: beamer -#+LaTeX_CLASS_OPTIONS: [presentation] +#+LaTeX_CLASS_OPTIONS: [presentation, smaller] #+LANGUAGE: de #+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)