]> git.armaanb.net Git - config.org.git/blobdiff - config.org
tmux: unbind prefix
[config.org.git] / config.org
index 4532e36c59efa7e878c198341600f3767c4b1c74..697255662ff4fa8185e50180e2ed552477e5fb48 100644 (file)
@@ -49,7 +49,7 @@ Use the Modus Operandi theme by Protesilaos Stavrou. Its the best theme for Emac
     (modus-themes-mode-line '3d)
     (modus-themes-scale-headings t)
     (modus-themes-diffs 'desaturated)
-    :config (load-theme 'modus-vivendi t))
+    :config (load-theme 'modus-operandi t))
 #+end_src
 ** Typography
 *** Font
@@ -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
@@ -290,6 +306,14 @@ Define templates for lots of common structure elements. Mostly just used within
                         ))
       (add-to-list 'org-structure-template-alist addition)))
 #+end_src
+** Tables
+#+begin_src emacs-lisp
+  (use-package org-table-wrap-functions
+    :straight (:repo "analyticd/org-table-wrap-functions" :host github)
+    :bind (:map org-mode-map
+                ("C-\\" . org-table-column-wrap-to-width)
+                ("C-|" . 'org-table-unwrap-cell-region)))
+#+end_src
 * Autocompletion
 ** Ivy
 A well balanced completion framework.
@@ -461,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)
@@ -470,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
@@ -694,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))))
@@ -889,13 +925,14 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac
 **** General program configs
 #+begin_src shell :tangle ~/.config/ash/ashrc
   export GPG_TTY="$(tty)"
-  export GNUPGHOME="~/.local/share/gnupg"
 
-  export GOPATH="~/.local/share/go"
+  export GNUPGHOME="$HOME/.local/share/gnupg"
+  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 MANPAGER='nvim +Man!'
   export PAGER='less'
-
   export GTK_USE_PORTAL=1
   export CDPATH=:~
   export LESSHISTFILE=/dev/null
@@ -921,19 +958,20 @@ 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 CFLAGS="-O3 -pipe -march=native"
-  export CXXFLAGS="$CFLAGS"
+  export CC=clang
+  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)"
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
 #+end_src
@@ -972,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
@@ -1097,26 +1135,12 @@ Make MPV play a little bit smoother.
 The best document reader!
 *** Options
 #+begin_src conf :tangle ~/.config/zathura/zathurarc
-  map <C-i> recolor
-  map <A-b> 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
@@ -1131,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
@@ -1167,7 +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)
-  autostart &
-  dwmblocks &
+  xhost +
   exec dwm
 #+end_src