Fix some issues
- uniquify is no longer considered a package - use-package use straight by default to install packages - move built-in org exporters (ox-latex, ox-md) to the org use-package call
This commit is contained in:
parent
584472c55d
commit
fb149b50e0
1 changed files with 20 additions and 24 deletions
34
init.el
34
init.el
|
@ -61,6 +61,14 @@
|
|||
|
||||
(set-face-attribute 'variable-pitch nil :family "Linux Libertine O" :height 140)
|
||||
|
||||
;; Better renaming rules for buffers with the same name
|
||||
(setq uniquify-buffer-name-style 'forward)
|
||||
(setq uniquify-separator "/")
|
||||
;; rename after killing uniquified
|
||||
(setq uniquify-after-kill-buffer-p t)
|
||||
;; don't muck with special buffers
|
||||
(setq uniquify-ignore-buffers-re "^\\*")
|
||||
|
||||
(defun unfill-paragraph ()
|
||||
(interactive)
|
||||
(let ((fill-column (point-max)))
|
||||
|
@ -80,7 +88,8 @@
|
|||
(goto-char (seq-random-elt points))))
|
||||
|
||||
;; Straight.el setup
|
||||
(setq straight-repository-branch "develop")
|
||||
(setq straight-repository-branch "develop"
|
||||
straight-use-package-by-default t)
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||
|
@ -118,16 +127,6 @@
|
|||
:config
|
||||
(global-hl-line-mode -1))
|
||||
|
||||
;; Better renaming rules for buffers with the same name
|
||||
(use-package uniquify
|
||||
:config
|
||||
(setq uniquify-buffer-name-style 'forward)
|
||||
(setq uniquify-separator "/")
|
||||
;; rename after killing uniquified
|
||||
(setq uniquify-after-kill-buffer-p t)
|
||||
;; don't muck with special buffers
|
||||
(setq uniquify-ignore-buffers-re "^\\*"))
|
||||
|
||||
;; Theme
|
||||
;; (use-package base16-theme
|
||||
;; :straight t
|
||||
|
@ -739,11 +738,9 @@
|
|||
|
||||
(setq org-src-preserve-indentation nil
|
||||
org-edit-src-content-indentation 0)
|
||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)))
|
||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||
|
||||
(use-package ox-latex
|
||||
:after (org)
|
||||
:config
|
||||
(require 'ox-latex)
|
||||
(add-to-list 'org-latex-classes
|
||||
'("koma-article" "\\documentclass{scrartcl}"
|
||||
("\\section{%s}" . "\\section*{%s}")
|
||||
|
@ -757,7 +754,9 @@
|
|||
'("AUTO" "polyglossia" t ("xelatex" "lualatex")))
|
||||
(setq org-latex-pdf-process
|
||||
'("latexmk -shell-escape -lualatex -bibtex -pdf %f"))
|
||||
(setq org-latex-default-class "koma-article"))
|
||||
(setq org-latex-default-class "koma-article")
|
||||
|
||||
(require 'ox-md))
|
||||
|
||||
(use-package ox-pandoc
|
||||
:straight t
|
||||
|
@ -773,9 +772,6 @@
|
|||
(eval-after-load "org"
|
||||
'(require 'ox-gfm nil t)))
|
||||
|
||||
(use-package ox-md
|
||||
:after (org))
|
||||
|
||||
(use-package ox-reveal
|
||||
:straight t)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue