diff options
author | 2020-02-24 22:02:35 -0800 | |
---|---|---|
committer | 2020-02-24 22:08:51 -0800 | |
commit | 1acb64f9c8daf3fffca0bb05ae32e66021355f7e (patch) | |
tree | d83f480608359bf55c9088533b2ac8580d2c4ff4 /oni-core.el | |
parent | 3e21fca289240f04a39f76fe4317d7a6ef79424f (diff) | |
download | emacs-config-1acb64f9c8daf3fffca0bb05ae32e66021355f7e.tar.gz emacs-config-1acb64f9c8daf3fffca0bb05ae32e66021355f7e.zip |
Enable recentf-mode in Emacs
Diffstat (limited to 'oni-core.el')
-rw-r--r-- | oni-core.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/oni-core.el b/oni-core.el index 7b011cd..a828539 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2020.0203.215730 +;; Version: 2020.0224.220825 ;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful) ;; This program is free software; you can redistribute it and/or modify @@ -28,6 +28,7 @@ ;;; Code: (require 'oni-data-dir) +(require 'recentf) (defconst oni-core--auto-save-directory (oni-data-dir-locate "auto-save-files/") "Directory where auto-saves go.") @@ -64,6 +65,8 @@ (setq abbrev-file-name (oni-data-dir-locate "abbrev_defs")) +(setq recentf-save-file (oni-data-dir-locate "recentf")) + ;;; Get rid of the default help tooltip on the mode-line. (setq mode-line-default-help-echo nil) @@ -98,7 +101,7 @@ (global-set-key (kbd "C-M-SPC") 'er/expand-region) (global-set-key (kbd "M-+") 'mc/mark-next-like-this) (global-set-key (kbd "C-c (") 'embrace-commander) -(global-set-key (kbd "C-x f") 'ffap) +(global-set-key (kbd "C-x M-f") 'ffap) (global-set-key (kbd "C-x C-b") 'ibuffer-jump) (global-set-key [remap describe-function] 'helpful-callable) @@ -109,8 +112,11 @@ (global-set-key (kbd "C-<left>") 'winner-undo) (global-set-key (kbd "C-<right>") 'winner-redo) +(run-with-idle-timer 10 t 'recentf-save-list) + (electric-indent-mode -1) (winner-mode) +(recentf-mode) (add-to-list 'display-buffer-alist `(,(rx string-start |