Add recentf config, ox-latex defer
This commit is contained in:
+23
-1
@@ -41,6 +41,7 @@
|
|||||||
- [[#file-backups][File Backups]]
|
- [[#file-backups][File Backups]]
|
||||||
- [[#hide-elements][Hide Elements]]
|
- [[#hide-elements][Hide Elements]]
|
||||||
- [[#org-1][Org]]
|
- [[#org-1][Org]]
|
||||||
|
- [[#recentf][Recentf]]
|
||||||
- [[#tabs][Tabs]]
|
- [[#tabs][Tabs]]
|
||||||
- [[#utf-8][UTF-8]]
|
- [[#utf-8][UTF-8]]
|
||||||
- [[#window][Window]]
|
- [[#window][Window]]
|
||||||
@@ -555,6 +556,9 @@ https://github.com/laishulu/hl-fill-column
|
|||||||
;; End sentences with a single space
|
;; End sentences with a single space
|
||||||
(setq sentence-end-double-space nil)
|
(setq sentence-end-double-space nil)
|
||||||
|
|
||||||
|
;; Tramp default protocol
|
||||||
|
(setq tramp-default-method "ssh")
|
||||||
|
|
||||||
;; Set undo limit, measured in bytes
|
;; Set undo limit, measured in bytes
|
||||||
(setq-default undo-limit 400000)
|
(setq-default undo-limit 400000)
|
||||||
(setq-default undo-strong-limit 3000000)
|
(setq-default undo-strong-limit 3000000)
|
||||||
@@ -664,6 +668,7 @@ File auto-saves, backups, tramps.
|
|||||||
;; Load latex exporter
|
;; Load latex exporter
|
||||||
(use-package ox-latex
|
(use-package ox-latex
|
||||||
:ensure nil ; ox-latex.el is part of org
|
:ensure nil ; ox-latex.el is part of org
|
||||||
|
:defer t
|
||||||
:after org
|
:after org
|
||||||
:custom
|
:custom
|
||||||
;; Define how minted is added to source code blocks
|
;; Define how minted is added to source code blocks
|
||||||
@@ -683,6 +688,21 @@ File auto-saves, backups, tramps.
|
|||||||
)
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Recentf
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package recentf
|
||||||
|
:config
|
||||||
|
(setq recentf-auto-cleanup 'never)
|
||||||
|
(setq recentf-exclude '("~$" "/ssh:" "/sudo:"))
|
||||||
|
(setq recentf-filename-handlers '(abbreviate-file-name))
|
||||||
|
(setq recentf-max-menu-items 0)
|
||||||
|
(setq recentf-max-saved-items 200)
|
||||||
|
(setq recentf-save-file (concat emacs-cache "/recentf"))
|
||||||
|
(recentf-mode)
|
||||||
|
)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Tabs
|
** Tabs
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@@ -1168,7 +1188,8 @@ General.el ~leader key binds.
|
|||||||
;; Find file
|
;; Find file
|
||||||
"f" '(:ignore t :which-key "file")
|
"f" '(:ignore t :which-key "file")
|
||||||
"f f" '(find-file-in-project-root :which-key "Find file")
|
"f f" '(find-file-in-project-root :which-key "Find file")
|
||||||
"f r" '(rename-file-and-buffer :which-key "Rename file")
|
"f r" '(recentf-open-files :which-key "Recent files")
|
||||||
|
"f R" '(rename-file-and-buffer :which-key "Rename file")
|
||||||
"f s" '(basic-save-buffer :which-key "Save file")
|
"f s" '(basic-save-buffer :which-key "Save file")
|
||||||
"f S" '(write-file :which-key "Save file as...")
|
"f S" '(write-file :which-key "Save file as...")
|
||||||
"f u" '(dot/sudo-find-file :which-key "Sudo find file")
|
"f u" '(dot/sudo-find-file :which-key "Sudo find file")
|
||||||
@@ -1269,6 +1290,7 @@ https://github.com/suyashbire1/emacs.d/blob/master/init.el
|
|||||||
(local-leader org-mode-map
|
(local-leader org-mode-map
|
||||||
"'" '(org-edit-special :which-key "Org edit")
|
"'" '(org-edit-special :which-key "Org edit")
|
||||||
"c" '(org-edit-special :which-key "Org edit")
|
"c" '(org-edit-special :which-key "Org edit")
|
||||||
|
"e" '(org-export-dispatch :which-key "Org export")
|
||||||
"l" '(org-insert-link :which-key "Org make link")
|
"l" '(org-insert-link :which-key "Org make link")
|
||||||
"o" '(org-open-at-point :which-key "Org open at point")
|
"o" '(org-open-at-point :which-key "Org open at point")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user