From 7ebb31c9226b5a3e724b242bf74e95621fc1ad50 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Fri, 14 Sep 2018 16:39:01 -0400 Subject: [PATCH] configured outline-minor-mode and outline magic for latex --- conf.org | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/conf.org b/conf.org index 23dd300..3334746 100644 --- a/conf.org +++ b/conf.org @@ -1890,6 +1890,29 @@ I have current have three contexts, personal and two work accounts. The first is ;; for composing rich-text emails using org mode org-mu4e-convert-to-html t)) #+END_SRC +** auctex +#+BEGIN_SRC emacs-lisp +(load "auctex.el" nil t t) +(require 'tex-mik) + +(setq TeX-view-program-selection '(((output-dvi has-no-display-manager) + "dvi2tty") + ((output-dvi style-pstricks) + "dvips and gv") + (output-dvi "xdvi") + (output-pdf "Okular") + (output-html "xdg-open"))) + +;; remove ugly section size +(setq font-latex-fontify-sectioning 'color) + +(add-hook 'LaTeX-mode-hook (lambda () (outline-minor-mode 1))) +(add-hook 'Tex-latex-mode-hook (lambda () (outline-minor-mode 1))) + +(use-package outline-magic + :ensure t + :after outline) +#+END_SRC ** bibtex #+BEGIN_SRC emacs-lisp (use-package org-ref @@ -2086,7 +2109,7 @@ Most packages that don't have an evil version are in this one. I don't like surp :ensure t :after evil :init - (setq evil-collection-modes-list + (setq evil-collection-mode-list '(dired flycheck company which-key helm minibuffer mu4e ediff term)) (setq evil-collection-setup-minibuffer t) @@ -2151,6 +2174,10 @@ These are for mode-specific bindings that can/should be outside of the evil maps (define-key helm-command-prefix (kbd "b") 'helm-bibtex) (define-key helm-command-prefix (kbd "") 'helm-resume) #+END_SRC +*** outline-magic +#+BEGIN_SRC emacs-lisp +(define-key outline-minor-mode-map (kbd "") 'outline-cycle) +#+END_SRC ** global #+BEGIN_SRC emacs-lisp (global-set-key (kbd "") 'org-agenda)