|
|
|
|
@ -330,9 +330,9 @@ |
|
|
|
|
** Show matching parens |
|
|
|
|
Use mic-paren for paren-highlighting |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
; (setq show-paren-mode t) |
|
|
|
|
(require 'mic-paren) |
|
|
|
|
(paren-activate) |
|
|
|
|
(setq show-paren-mode t) |
|
|
|
|
; (require 'mic-paren) |
|
|
|
|
; (paren-activate) |
|
|
|
|
#+END_SRC |
|
|
|
|
*** TODO find out if there are better options out there |
|
|
|
|
** Abbrevs |
|
|
|
|
@ -905,10 +905,20 @@ |
|
|
|
|
(lambda () |
|
|
|
|
(turn-on-reftex) |
|
|
|
|
(setq reftex-plug-into-AUCTeX t) |
|
|
|
|
(setq reftex-insert-label-flags '(t t)) |
|
|
|
|
(setq reftex-label-alist |
|
|
|
|
'(("thm" ?t "thm:" "~\\ref{%s}" thm (regexp "theorems?")) |
|
|
|
|
("lem" ?l "lem:" "~\\ref{%s}" lem (regexp "lemma{ta}?")) |
|
|
|
|
("prop" ?p "prp:" "~\\ref{%s}" prp (regexp "propositions?")) |
|
|
|
|
("cor" ?c "cor:" "~\\ref{%s}" cor (regexp "corollary")) |
|
|
|
|
("def" ?d "def:" "~\\ref{%s}" cor (regexp "defintions?")) |
|
|
|
|
)) |
|
|
|
|
|
|
|
|
|
(setq prettify-symbols-alist nil) |
|
|
|
|
(add-to-list 'prettify-symbols-alist '(" ⊂ " . (? (Br . Bl) ? (Br . Bl) ?))) |
|
|
|
|
|
|
|
|
|
(font-lock-add-keywords 'latex-mode `((,(rx "$") 0 'success t)) t) |
|
|
|
|
(font-lock-add-keywords |
|
|
|
|
'latex-mode `((,(rx "$") 0 'font-latex-sedate-face t)) t) |
|
|
|
|
|
|
|
|
|
(turn-on-auto-fill) |
|
|
|
|
(subword-mode) |
|
|
|
|
@ -1178,6 +1188,10 @@ |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(require 'magit) |
|
|
|
|
(global-set-key (kbd "C-x C-g") 'magit-status) |
|
|
|
|
(magit-add-section-hook 'magit-status-sections-hook |
|
|
|
|
#'magit-insert-submodules |
|
|
|
|
#'magit-insert-unpushed-to-pushremote |
|
|
|
|
:append) |
|
|
|
|
#+END_SRC |
|
|
|
|
** smart-tab |
|
|
|
|
This package is a gem: it allows to make tab work dwim |
|
|
|
|
|