|
@@ -155,6 +155,20 @@
|
|
|
:config
|
|
|
(sp-local-pair '(lisp-mode emacs-lisp-mode) "'" nil :actions nil)
|
|
|
(sp-local-pair '(lisp-mode emacs-lisp-mode) "`" nil :actions nil)
|
|
|
+ ;; Add \big( \big), etc. without having to use \bigl( \bigr).
|
|
|
+ (sp-with-modes '(tex-mode plain-tex-mode latex-mode LaTeX-mode)
|
|
|
+ (sp-local-pair "\\big(" "\\big)" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\bigg(" "\\bigg)" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\Big(" "\\Big)" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\Bigg(" "\\Bigg)" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\big[" "\\big]" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\bigg[" "\\bigg]" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\Big[" "\\Big]" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\Bigg[" "\\Bigg]" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\big\\{" "\\big\\}" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\bigg\\{" "\\bigg\\}" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\Big\\{" "\\Big\\}" :post-handlers '(sp-latex-insert-spaces-inside-pair))
|
|
|
+ (sp-local-pair "\\Bigg\\{" "\\Bigg\\}" :post-handlers '(sp-latex-insert-spaces-inside-pair)))
|
|
|
(eval-after-load 'latex '(require 'smartparens-latex))
|
|
|
)
|
|
|
;; Helm (completion framework)
|
|
@@ -300,6 +314,7 @@
|
|
|
(cdlatex-takeover-parenthesis . nil)
|
|
|
:hook
|
|
|
((latex-mode LaTeX-mode) . cdlatex-mode)
|
|
|
+ (org-mode . org-cdlatex-mode)
|
|
|
:config
|
|
|
(add-hook 'cdlatex-tab-hook 'LaTeX-indent-line)
|
|
|
(setq cdlatex-env-alist
|