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
44
init.el
44
init.el
|
@ -61,6 +61,14 @@
|
||||||
|
|
||||||
(set-face-attribute 'variable-pitch nil :family "Linux Libertine O" :height 140)
|
(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 ()
|
(defun unfill-paragraph ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((fill-column (point-max)))
|
(let ((fill-column (point-max)))
|
||||||
|
@ -80,7 +88,8 @@
|
||||||
(goto-char (seq-random-elt points))))
|
(goto-char (seq-random-elt points))))
|
||||||
|
|
||||||
;; Straight.el setup
|
;; Straight.el setup
|
||||||
(setq straight-repository-branch "develop")
|
(setq straight-repository-branch "develop"
|
||||||
|
straight-use-package-by-default t)
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let ((bootstrap-file
|
(let ((bootstrap-file
|
||||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
|
@ -118,16 +127,6 @@
|
||||||
:config
|
:config
|
||||||
(global-hl-line-mode -1))
|
(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
|
;; Theme
|
||||||
;; (use-package base16-theme
|
;; (use-package base16-theme
|
||||||
;; :straight t
|
;; :straight t
|
||||||
|
@ -739,25 +738,25 @@
|
||||||
|
|
||||||
(setq org-src-preserve-indentation nil
|
(setq org-src-preserve-indentation nil
|
||||||
org-edit-src-content-indentation 0)
|
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
|
(require 'ox-latex)
|
||||||
:after (org)
|
|
||||||
:config
|
|
||||||
(add-to-list 'org-latex-classes
|
(add-to-list 'org-latex-classes
|
||||||
'("koma-article" "\\documentclass{scrartcl}"
|
'("koma-article" "\\documentclass{scrartcl}"
|
||||||
("\\section{%s}" . "\\section*{%s}")
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
||||||
(add-to-list 'org-latex-packages-alist
|
(add-to-list 'org-latex-packages-alist
|
||||||
'("AUTO" "babel" t ("pdflatex")))
|
'("AUTO" "babel" t ("pdflatex")))
|
||||||
(add-to-list 'org-latex-packages-alist
|
(add-to-list 'org-latex-packages-alist
|
||||||
'("AUTO" "polyglossia" t ("xelatex" "lualatex")))
|
'("AUTO" "polyglossia" t ("xelatex" "lualatex")))
|
||||||
(setq org-latex-pdf-process
|
(setq org-latex-pdf-process
|
||||||
'("latexmk -shell-escape -lualatex -bibtex -pdf %f"))
|
'("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
|
(use-package ox-pandoc
|
||||||
:straight t
|
:straight t
|
||||||
|
@ -773,9 +772,6 @@
|
||||||
(eval-after-load "org"
|
(eval-after-load "org"
|
||||||
'(require 'ox-gfm nil t)))
|
'(require 'ox-gfm nil t)))
|
||||||
|
|
||||||
(use-package ox-md
|
|
||||||
:after (org))
|
|
||||||
|
|
||||||
(use-package ox-reveal
|
(use-package ox-reveal
|
||||||
:straight t)
|
:straight t)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue