X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=blobdiff_plain;f=config.org;h=697255662ff4fa8185e50180e2ed552477e5fb48;hp=814c963684cbe102890d97cc5f9427502e6fbdbd;hb=HEAD;hpb=9ec00d7eb7fb523392cb7730d5ef27ba8f4a9ca9 diff --git a/config.org b/config.org index 814c963..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 @@ -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)))) @@ -938,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)" @@ -984,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 @@ -1129,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