** Theme
Use the Modus Operandi theme by Protesilaos Stavrou. Its the best theme for Emacs by far, because how clear and readable it is. It is highly customizable, but I just set a few options here.
#+begin_src emacs-lisp
- (setq modus-themes-slanted-constructs t
- modus-themes-bold-constructs t
- modus-themes-mode-line '3d
- modus-themes-scale-headings t
- modus-themes-diffs 'desaturated)
- (load-theme 'modus-vivendi t)
+ (use-package modus-themes
+ :custom
+ (modus-themes-slanted-constructs t)
+ (modus-themes-bold-constructs t)
+ (modus-themes-mode-line '3d)
+ (modus-themes-scale-headings t)
+ (modus-themes-diffs 'desaturated)
+ :config (load-theme 'modus-vivendi t))
#+end_src
** Typography
*** Font
("xr" . "src conf :tangle ~/.Xresources")
("tm" . "src conf :tangle ~/.tmux.conf")
("gp" . "src conf :tangle ~/.gnupg/gpg.conf")
- ("ag" . "src conf :tangle ~/.gnupg/gpg-agent.conf")))
+ ("ag" . "src conf :tangle ~/.gnupg/gpg-agent.conf")
+ ("xm" . "src conf :tangle ~/.config/xmodmap")))
(add-to-list 'org-structure-template-alist addition)))
#+end_src
* Autocompletion
mu4e-confirm-quit nil
mu4e-view-use-gnus t
mail-user-agent 'mu4e-user-agent
- mail-context-policy 'pick-first
+ mu4e-context-policy 'pick-first
mu4e-contexts
`( ,(make-mu4e-context
:name "school"
#+begin_src emacs-lisp
(use-package markdown-mode)
#+end_src
+** scdoc mode
+Get it for yourself at https://git.armaanb.net/scdoc
+#+begin_src emacs-lisp
+ (add-to-list 'load-path "~/Code/scdoc-mode")
+ (autoload 'scdoc-mode "scdoc-mode" "Major mode for editing scdoc files" t)
+ (add-to-list 'auto-mode-alist '("\\.scd\\'" . scdoc-mode))
+#+end_src
* Keybindings
** Switch windows
#+begin_src emacs-lisp
default-cache-ttl 600
allow-emacs-pinentry
#+end_src
+** Xmodmap
+#+begin_src conf :tangle ~/.config/xmodmap
+ !
+ ! Unmap left super
+ !
+ clear mod4
+
+ !
+ ! Turn right alt into super
+ !
+ remove mod1 = Alt_R
+ add mod4 = Alt_R
+
+ !
+ ! Swap caps and control
+ !
+ remove Lock = Caps_Lock
+ remove Control = Control_L
+ remove Lock = Control_L
+ remove Control = Caps_Lock
+ keysym Control_L = Caps_Lock
+ keysym Caps_Lock = Control_L
+ add Lock = Caps_Lock
+ add Control = Control_L
+#+end_src