Enabled word-wrapping in text-mode, configured printer in pdf-tools.
This commit is contained in:
parent
70b02a2709
commit
db7512fc76
13
init.el
13
init.el
|
@ -1,5 +1,5 @@
|
|||
;;; 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:
|
||||
;; 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
|
||||
(prog-mode . my/set-fill-column-80)
|
||||
(conf-mode . my/set-fill-column-80)
|
||||
(markdown-mode . my/set-fill-column-80)
|
||||
|
||||
(prog-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.
|
||||
(use-package ido
|
||||
|
@ -753,14 +753,14 @@ With argument, do this that many times."
|
|||
(find-file . auto-insert))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(if (executable-find "xelatex")
|
||||
(if (executable-find "xetex")
|
||||
(use-package tex-site
|
||||
:ensure auctex
|
||||
:custom
|
||||
(TeX-parse-self t) ; Enable parse on load.
|
||||
(TeX-auto-save t) ; Enable parse on save
|
||||
(TeX-PDF-mode t) ; PDF mode (rather than DVI-mode)
|
||||
(TeX-engine 'xelatex)
|
||||
(TeX-engine 'xetex)
|
||||
;; To use pdf-tools with auctex.
|
||||
;; https://emacs.stackexchange.com/a/21764/21935
|
||||
(TeX-view-program-selection '((output-pdf "PDF Tools")))
|
||||
|
@ -830,6 +830,7 @@ With argument, do this that many times."
|
|||
("\\.md\\'" . markdown-mode)
|
||||
("\\.markdown\\'" . markdown-mode))
|
||||
:hook
|
||||
(markdown-mode . my/set-fill-column-80)
|
||||
(markdown-mode . auto-fill-mode)) ; Wrap at fill-column.
|
||||
|
||||
(use-package crontab-mode
|
||||
|
@ -847,6 +848,8 @@ With argument, do this that many times."
|
|||
|
||||
;; View PDF files.
|
||||
(use-package pdf-tools
|
||||
:custom
|
||||
(pdf-misc-print-programm "/usr/bin/lpr")
|
||||
:mode
|
||||
("\\.pdf\\'" . pdf-tools-install))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user