Enabled word-wrapping in text-mode, configured printer in pdf-tools.

This commit is contained in:
tastytea 2019-04-23 13:55:49 +02:00
parent 70b02a2709
commit db7512fc76

13
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; init.el --- tastytea's Emacs init file.
;; Time-stamp: <2019-04-16T20:51:04+00:00> ;; Time-stamp: <2019-04-23T05:51:51+00:00>
;;; Commentary: ;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with ;; I am using this file with Emacs 26, but most of it will probably work with
@ -508,11 +508,11 @@ With argument, do this that many times."
:hook :hook
(prog-mode . my/set-fill-column-80) (prog-mode . my/set-fill-column-80)
(conf-mode . my/set-fill-column-80) (conf-mode . my/set-fill-column-80)
(markdown-mode . my/set-fill-column-80)
(prog-mode . fci-mode) (prog-mode . fci-mode)
(conf-mode . fci-mode) (conf-mode . fci-mode)
(text-mode . fci-mode))
(text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column.
;; Interactive substring matching. ;; Interactive substring matching.
(use-package ido (use-package ido
@ -753,14 +753,14 @@ With argument, do this that many times."
(find-file . auto-insert)) (find-file . auto-insert))
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(if (executable-find "xelatex") (if (executable-find "xetex")
(use-package tex-site (use-package tex-site
:ensure auctex :ensure auctex
:custom :custom
(TeX-parse-self t) ; Enable parse on load. (TeX-parse-self t) ; Enable parse on load.
(TeX-auto-save t) ; Enable parse on save (TeX-auto-save t) ; Enable parse on save
(TeX-PDF-mode t) ; PDF mode (rather than DVI-mode) (TeX-PDF-mode t) ; PDF mode (rather than DVI-mode)
(TeX-engine 'xelatex) (TeX-engine 'xetex)
;; To use pdf-tools with auctex. ;; To use pdf-tools with auctex.
;; https://emacs.stackexchange.com/a/21764/21935 ;; https://emacs.stackexchange.com/a/21764/21935
(TeX-view-program-selection '((output-pdf "PDF Tools"))) (TeX-view-program-selection '((output-pdf "PDF Tools")))
@ -830,6 +830,7 @@ With argument, do this that many times."
("\\.md\\'" . markdown-mode) ("\\.md\\'" . markdown-mode)
("\\.markdown\\'" . markdown-mode)) ("\\.markdown\\'" . markdown-mode))
:hook :hook
(markdown-mode . my/set-fill-column-80)
(markdown-mode . auto-fill-mode)) ; Wrap at fill-column. (markdown-mode . auto-fill-mode)) ; Wrap at fill-column.
(use-package crontab-mode (use-package crontab-mode
@ -847,6 +848,8 @@ With argument, do this that many times."
;; View PDF files. ;; View PDF files.
(use-package pdf-tools (use-package pdf-tools
:custom
(pdf-misc-print-programm "/usr/bin/lpr")
:mode :mode
("\\.pdf\\'" . pdf-tools-install)) ("\\.pdf\\'" . pdf-tools-install))