]> git.armaanb.net Git - config.org.git/blobdiff - config.org
tmux: unbind prefix
[config.org.git] / config.org
index 96bab4081d75e725700cd78dee2c7d0dae705ace..697255662ff4fa8185e50180e2ed552477e5fb48 100644 (file)
@@ -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
@@ -704,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))))
@@ -904,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
@@ -937,12 +964,12 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac
   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)"
@@ -983,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
@@ -1108,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
@@ -1142,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
@@ -1178,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