X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=blobdiff_plain;f=config.org;h=697255662ff4fa8185e50180e2ed552477e5fb48;hp=eefc8adc417f41b66e7eef65ad415c1c5b8cf49c;hb=HEAD;hpb=06142575bfb888a4ea90738b637e9464dc5f003e diff --git a/config.org b/config.org index eefc8ad..6972556 100644 --- a/config.org +++ b/config.org @@ -84,12 +84,16 @@ Display relative line numbers except in certain modes. #+begin_src emacs-lisp (global-display-line-numbers-mode) (setq display-line-numbers-type 'relative) - (dolist (no-line-num '(term-mode-hook + (dolist (no-line-num '( + Man-mode-hook + circe-mode-hook + eshell-mode-hook + helpful-mode-hook + org-mode-hook pdf-view-mode-hook shell-mode-hook - org-mode-hook - circe-mode-hook - eshell-mode-hook)) + term-mode-hook + )) (add-hook no-line-num (lambda () (display-line-numbers-mode 0)))) #+end_src ** Highlight matching parenthesis @@ -135,16 +139,20 @@ Highlight whitespace and other bad text practices. ** Visual line mode Soft wrap words and do operations by visual lines in some modes. #+begin_src emacs-lisp - (dolist (hook '(text-mode-hook - org-mode-hook + (dolist (hook '( markdown-mode-hook - mu4e-view-mode-hook)) + mu4e-view-mode-hook + org-mode-hook + text-mode-hook + )) (add-hook hook (lambda () (visual-line-mode 1)))) #+end_src ** Auto fill mode #+begin_src emacs-lisp - (dolist (hook '(scdoc-mode-hook - mu4e-compose-mode-hook)) + (dolist (hook '( + mu4e-compose-mode-hook + scdoc-mode-hook + )) (add-hook hook (lambda () (auto-fill-mode 1)))) #+end_src ** Display number of matches in search @@ -179,6 +187,14 @@ Invert modeline color instead of audible bell or the standard visual bell. #+begin_src emacs-lisp (setq auth-sources '("~/.emacs.d/authinfo.gpg")) #+end_src +** Shackle +#+begin_src emacs-lisp + (use-package shackle + :config (shackle-mode) + :custom (shackle-rules '( + (Man-mode :select t) + ))) +#+end_src * Evil mode ** General #+begin_src emacs-lisp @@ -469,6 +485,9 @@ Set EWW as default browser except for multimedia which should open in MPV. (interactive) (start-process "mpv" "*mpv*" "mpv" url)) + (setq browse-url-browser-function 'browse-url-generic + browse-url-generic-program "chorizo") + (setq browse-url-handlers (quote (("youtu\\.?be" . browse-url-mpv) @@ -478,7 +497,6 @@ Set EWW as default browser except for multimedia which should open in MPV. ("*.mp4" . browse-url-mpv) ("*.mp3" . browse-url-mpv) ("*.ogg" . browse-url-mpv) - ("." . eww-browse-url) ))) #+end_src ** EWW @@ -702,13 +720,23 @@ Style is basically ddevault's style guide but with 4 spaces instead of 8 char ta (add-hook 'before-save-hook 'clang-format-buffer-smart nil) #+end_src +** KISS +#+begin_src emacs-lisp + (append auto-mode-alist '("/home/armaa/repos/" . sh-mode)) +#+end_src +** Shell +#+begin_src emacs-lisp + (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) +#+end_src * General text editing ** Spell checking Spell check in text mode, and in prog-mode comments. #+begin_src emacs-lisp - (dolist (hook '(text-mode-hook + (dolist (hook '( markdown-mode-hook - scdoc-mode-hook)) + scdoc-mode-hook + text-mode-hook + )) (add-hook hook (lambda () (flyspell-mode)))) (dolist (hook '(change-log-mode-hook log-edit-mode-hook)) (add-hook hook (lambda () (flyspell-mode -1)))) @@ -902,6 +930,7 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac export GOPATH="$HOME/.local/share/go" export JUPYTER_CONFIG_DIR="$HOME/.config/jupyter" export IPYTHON_DIR="$HOME/.local/share/ipython" + export DISTCC_DIR="$HOME/.local/state/distcc" export PAGER='less' export GTK_USE_PORTAL=1 @@ -929,19 +958,18 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac #+begin_src shell :tangle ~/.config/ash/ashrc export KISS_PATH="" export KISS_PATH="$KISS_PATH:$HOME/repos/personal" - export KISS_PATH="$KISS_PATH:$HOME/repos/bin/bin" export KISS_PATH="$KISS_PATH:$HOME/repos/main/core" export KISS_PATH="$KISS_PATH:$HOME/repos/main/extra" export KISS_PATH="$KISS_PATH:$HOME/repos/main/xorg" export KISS_PATH="$KISS_PATH:$HOME/repos/community/community" export KISS_PATH="$KISS_PATH:$HOME/repos/mid/ports" - export KISS_COMPRESS=xz + export KISS_COMPRESS=zst #+end_src **** Compilation flags #+begin_src shell :tangle ~/.config/ash/ashrc export CC=clang - export CFLAGS="-O3 -pipe -march=native" + export CFLAGS="-O3 -pipe -march=native -w -D_FORTIFY_SOURCE=1 -fPIE -fPIC" export CXX=clang++ export CXXFLAGS="$CFLAGS -stdlib=libc++" export MAKEFLAGS="-j$(nproc)" @@ -982,7 +1010,7 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac alias ln='ln -v' alias grep='grep -in' alias mkdir='mkdir -pv' - alias lanex='java -jar ~/.local/share/lxc/lanxchange.jar && rm lxc*' + alias kmake='make LLVM=1 LLVM_IAS=1 YACC=byacc' emacs() { $EDITOR "$@" & } alias vim="emacs" #+end_src @@ -1107,26 +1135,12 @@ Make MPV play a little bit smoother. The best document reader! *** Options #+begin_src conf :tangle ~/.config/zathura/zathurarc - map recolor - map toggle_statusbar set selection-clipboard clipboard set scroll-step 200 set window-title-basename "true" set selection-clipboard "clipboard" #+end_src -*** Colors -#+begin_src conf :tangle ~/.config/zathura/zathurarc - set default-bg "#000000" - set default-fg "#ffffff" - set render-loading true - set render-loading-bg "#000000" - set render-loading-fg "#ffffff" - - set recolor-lightcolor "#000000" # bg - set recolor-darkcolor "#ffffff" # fg - set recolor "true" -#+end_src ** Tmux I use tmux in order to keep my st build light. Still learning how it works. #+begin_src conf :tangle ~/.config/tmux/tmux.conf @@ -1141,6 +1155,8 @@ I use tmux in order to keep my st build light. Still learning how it works. set-window-option -g mode-keys vi bind-key -T copy-mode-vi 'v' send -X begin-selection bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + unbind C-b + set-option -g prefix None #+end_src ** GPG *** Config @@ -1177,5 +1193,6 @@ I use tmux in order to keep my st build light. Still learning how it works. #+end_src ** sx #+begin_src shell :tangle ~/.config/sx/sxrc :tangle-mode (identity #o755) + xhost + exec dwm #+end_src