]> git.armaanb.net Git - config.org.git/blobdiff - config.org
ash: fortify CFLAGS
[config.org.git] / config.org
index e7fd1dc91438c4ab3449cc0b409bc001802abd59..2a4537d75af13175976228ea2e5984eb652edce0 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
@@ -716,9 +732,11 @@ Style is basically ddevault's style guide but with 4 spaces instead of 8 char ta
 ** 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))))
@@ -946,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)"
@@ -992,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