aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2019-01-17 21:13:20 +0000
committerYann Herklotz <ymherklotz@gmail.com>2019-01-17 21:13:20 +0000
commitc673bbdf246b32f0631906f944ddabb9f16ed481 (patch)
tree15aadf2a52c30fb1ab45e592f3872d9b31492b52 /emacs
parent4e5604e4e0b37d0cec82c2e716ef45cec3fc0cc7 (diff)
downloaddotfiles-c673bbdf246b32f0631906f944ddabb9f16ed481.tar.gz
dotfiles-c673bbdf246b32f0631906f944ddabb9f16ed481.zip
Add minted to Latex
Diffstat (limited to 'emacs')
-rw-r--r--emacs/loader.org11
1 files changed, 7 insertions, 4 deletions
diff --git a/emacs/loader.org b/emacs/loader.org
index 620998e..8cde0e4 100644
--- a/emacs/loader.org
+++ b/emacs/loader.org
@@ -698,7 +698,10 @@ incrementally selecting more and more of the text.
(autoload 'reftex-citation "reftex-cite" "Make citation" nil)
(autoload 'reftex-index-phrase-mode "reftex-index" "Phrase Mode" t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
- (setq reftex-bibliography-commands '("bibliography" "nobibliography" "addbibresource"))) ; with Emacs latex mode
+ (setq reftex-bibliography-commands '("bibliography" "nobibliography" "addbibresource"))
+ (setq org-latex-listings 'minted)
+ (require 'ox-latex)
+ (add-to-list 'org-latex-packages-alist '("" "minted"))) ; with Emacs latex mode
#+END_SRC
#+RESULTS:
@@ -748,7 +751,6 @@ Set global keys for org mode to access agenda.
(global-set-key (kbd "C-c l") 'org-store-link)
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "C-c c") 'org-capture)
- (global-set-key (kbd "C-c b") 'org-iswitchb)
#+END_SRC
#+RESULTS:
@@ -1049,10 +1051,11 @@ Haskell mode with company mode completion.
(use-package haskell-mode
:commands haskell-mode
- :bind (("M-." . haskell-mode-jump-to-def)
- ("C-c a" . y/haskell-align))
+ :bind (("M-." . haskell-mode-jump-to-def))
:config
(add-hook 'haskell-mode-hook 'haskell-decl-scan-mode)
+ (add-hook 'haskell-mode-hook (lambda ()
+ (local-set-key (kbd "C-c a") 'y/haskell-align)))
(setq haskell-mode-stylish-haskell-path "/home/yannherklotz/.local/bin/stylish-haskell"
haskell-stylish-on-save t
haskell-process-type 'stack-ghci