diff options
| author | benj <benj@rse8.com> | 2023-11-25 10:02:42 -0800 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2023-11-25 10:02:42 -0800 |
| commit | 4cfa8246ea7eec4139ba6c34d3fb3a4545956824 (patch) | |
| tree | 450ba709847d3740eef79753c428095bdb08fe62 /settings/setup-ido.el | |
| parent | 4f78ee33bfc828707a79cd79d296bf4a9c25b5b9 (diff) | |
| download | emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.gz emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.bz2 emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.lz emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.xz emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.zst emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.zip | |
rewrite emacs init.el and go back to basics
This is a complete rewrite leveraging the very popular use-package to
see how I like it. We reduce init.el to a bare minimum configuration
and remove the previous homebrew organizational scheme. A number of
packages have yet to be setup, but we'll wait and do in JIT.
Diffstat (limited to '')
| -rw-r--r-- | settings/setup-ido.el | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/settings/setup-ido.el b/settings/setup-ido.el deleted file mode 100644 index 26daeb2..0000000 --- a/settings/setup-ido.el +++ /dev/null @@ -1,45 +0,0 @@ -(require 'ido) -(require 'flx-ido) -(ido-mode t) -(ido-everywhere t) -(flx-ido-mode t) - -;; disable flex matching to use flx-ido -(setq ido-disable-flex-matching t - ido-use-faces nil - ido-create-new-buffer 'always) - -(require 'ido-vertical-mode) -(ido-vertical-mode) - -;; C-n/p is more intuitive in vertical layout -(setq ido-vertical-define-keys 'C-n-C-p-up-down-left-right) - -(defun my/ido-go-straight-home () - (interactive) - (cond - ((looking-back "/") (insert "~/")) - (:else (call-interactively 'self-insert-command)))) - -(defun my/setup-ido () - ;; Go straight home - (define-key ido-file-completion-map (kbd "~") 'my/ido-go-straight-home) - (define-key ido-file-completion-map (kbd "C-~") 'my/ido-go-straight-home) - - ;; Use C-w to go back up a dir to better match normal usage of C-w - ;; - insert current file name with C-x C-w instead. - (define-key ido-file-completion-map (kbd "C-w") 'ido-delete-backward-updir) - (define-key ido-file-completion-map (kbd "C-x C-w") 'ido-copy-current-file-name) - - (define-key ido-file-dir-completion-map (kbd "C-w") 'ido-delete-backward-updir) - (define-key ido-file-dir-completion-map (kbd "C-x C-w") 'ido-copy-current-file-name)) - -(add-hook 'ido-setup-hook 'my/setup-ido) - -;; Always rescan buffer for imenu -(set-default 'imenu-auto-rescan t) - -(add-to-list 'ido-ignore-directories "target") -(add-to-list 'ido-ignore-directories "node_modules") - -(provide 'setup-ido) |
