aboutsummaryrefslogtreecommitdiff
path: root/dot.emacs.d/init.el
diff options
context:
space:
mode:
authorThomas Schneider <qsx@qsx.re>2019-06-27 15:18:02 +0200
committerThomas Schneider <qsx@qsx.re>2019-06-27 15:18:02 +0200
commit67b040b5f7fc227bc3c6f44ecbe56fabea804610 (patch)
treead412ebc95e788e83a48b31e792452d96c54e801 /dot.emacs.d/init.el
parenta07e65bfa25db1cd2b32477592b19c55d047fc00 (diff)
Emacs: Ignore certain packages on non-graphical systems
Diffstat (limited to 'dot.emacs.d/init.el')
-rw-r--r--dot.emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el
index 3a8e58d..bd95efd 100644
--- a/dot.emacs.d/init.el
+++ b/dot.emacs.d/init.el
@@ -91,10 +91,13 @@
(append '((company-math-symbols-latex company-latex-commands))
company-backends)))))
(use-package company-auctex
+ :if (display-graphic-p)
:config (company-auctex-init))
(use-package company-bibtex
+ :if (display-graphic-p)
:config (add-to-list 'company-backends 'company-bibtex))
(use-package company-reftex
+ :if (display-graphic-p)
:config (add-to-list 'company-backends 'company-reftex))
(use-package company-jedi
:config
@@ -210,6 +213,7 @@
(add-hook 'Man-mode-hook #'qsx-dont-show-line-numbers-hook)
(use-package pdf-tools
+ :if (display-graphic-p)
:unless (eq system-type 'darwin)
:config
(pdf-tools-install)
@@ -226,6 +230,7 @@
(add-hook 'mail-mode-hook #'mail-text)
(use-package tex
+ :if (display-graphic-p)
:ensure auctex
:init
(setq reftex-plug-into-AUCTeX t)
@@ -235,6 +240,7 @@
fill-column 80))
(use-package auctex-latexmk
+ :if (display-graphic-p)
:config
(auctex-latexmk-setup))