mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
I've taken a lot of inspiration from Emacs-Prelude when it came to the structure of this rewritten config. I didn't want to use Prelude as I don't agree with all it's defaults, nor do I want to have to deal with any future changes in Prelude that might break things for me. So instead I went down the fully custom path, but heavily inspired by Prelude, both in terms of file/code structure, and also some of it's features. Compared to my old config setup, it's got most of the same things, but nearly everything is in a module file now, making it easy to fully enable/disable certain features.
36 lines
979 B
EmacsLisp
36 lines
979 B
EmacsLisp
;;
|
|
;; ido relateed
|
|
;;
|
|
|
|
(siren-require-packages '(ido-ubiquitous ido-vertical-mode smex))
|
|
|
|
(require 'ido)
|
|
(require 'ido-ubiquitous)
|
|
(require 'ido-vertical-mode)
|
|
|
|
(setq ido-enable-prefix nil
|
|
ido-enable-flex-matching t
|
|
ido-create-new-buffer 'always
|
|
ido-use-filename-at-point 'guess
|
|
ido-max-prospects 10
|
|
ido-save-directory-list-file (expand-file-name "ido.hist" siren-savefile-dir)
|
|
ido-default-file-method 'selected-window
|
|
ido-auto-merge-work-directories-length -1
|
|
ido-vertical-define-keys "C-n-C-p-up-down-left-right")
|
|
|
|
(ido-mode +1)
|
|
(ido-ubiquitous-mode +1)
|
|
(ido-vertical-mode +1)
|
|
|
|
;; disable ido faces to see flx highlights
|
|
(setq ido-use-faces nil)
|
|
|
|
;;; smex, remember recently and most frequently used commands
|
|
(require 'smex)
|
|
(setq smex-save-file (expand-file-name ".smex-items" siren-savefile-dir))
|
|
(smex-initialize)
|
|
(global-set-key (kbd "M-x") 'smex)
|
|
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
|
|
|
|
|
|
(provide 'siren-ido) |