replace ido/smex with helm

This commit is contained in:
petrucci4prez 2018-07-13 20:05:50 -04:00
parent 7bc63f50f9
commit 6d3d85a186
2 changed files with 97 additions and 51 deletions

69
conf.el
View File

@ -101,34 +101,55 @@
:init :init
(which-key-mode)) (which-key-mode))
(use-package ido ;; (use-package ido
:ensure t ;; :ensure t
:bind ;; :bind
("C-x C-b" . 'ido-switch-buffer) ;; ("C-x C-b" . 'ido-switch-buffer)
("C-x b" . 'ibuffer) ;; ("C-x b" . 'ibuffer)
:config ;; :config
(ido-mode 1) ;; (ido-mode 1)
(setq ido-everywhere t) ;; (setq ido-everywhere t)
(setq ido-enable-flex-matching t) ;; (setq ido-enable-flex-matching t)
(setq ido-max-directory-size 100000) ;; (setq ido-max-directory-size 100000)
(setq ido-default-file-method 'selected-window) ;; (setq ido-default-file-method 'selected-window)
(setq ido-default-buffer-method 'selected-window) ;; (setq ido-default-buffer-method 'selected-window)
(use-package ido-vertical-mode ;; (use-package ido-vertical-mode
:ensure t ;; :ensure t
:init ;; :init
(ido-vertical-mode 1) ;; (ido-vertical-mode 1)
(setq ido-vertical-define-keys 'C-n-and-C-p-only))) ;; (setq ido-vertical-define-keys 'C-n-and-C-p-only)))
;; (setq ido-file-extensions-order '(".org" ".txt" ".py" ".emacs" ".xml" ".el" ".ini" ".cfg" ".cnf")) ;; (setq ido-file-extensions-order '(".org" ".txt" ".py" ".emacs" ".xml" ".el" ".ini" ".cfg" ".cnf"))
(use-package smex (use-package helm
:ensure t :ensure t
:init
(smex-initialize)
:bind :bind
("M-x" . 'smex) ("C-x C-f" . 'helm-find-files)
("M-X" . 'smex-major-mode-commands)) ("C-x C-b" . 'helm-buffers-list)
("M-x" . 'helm-M-x)
("C-c h" . 'helm-command-prefix)
:init
(helm-mode 1)
:config
(setq helm-autoresize-max-height 0
helm-autoresize-max-height 40
helm-M-x-fuzzy-match t
helm-buffers-fuzzy-matching t
helm-recentf-fuzzy-match t
helm-semantic-fuzzy-match t
helm-imenu-fuzzy-match t))
(helm-autoresize-mode 1)
(require 'helm-config)
;; (use-package smex
;; :ensure t
;; :init
;; (smex-initialize)
;; :bind
;; ("M-x" . 'smex)
;; ("M-X" . 'smex-major-mode-commands))
(use-package rainbow-delimiters (use-package rainbow-delimiters
:ensure t :ensure t
@ -487,11 +508,11 @@ event of an error or nonlocal exit."
"* TODO %?\nDEADLINE: %^t\ndeliverable:\n%U\n") "* TODO %?\nDEADLINE: %^t\ndeliverable:\n%U\n")
("p" "org-protocol" entry (file ,capfile) ("p" "org-protocol" entry (file ,capfile)
"* %^{Title}\n%u\n#+BEGIN_QUOTE\n%i\n#+END_QUOTE" "* %^{Title} :\\%note:\n%u\n#+BEGIN_QUOTE\n%i\n#+END_QUOTE"
:immediate-finish t) :immediate-finish t)
("L" "org-protocol link" entry (file ,capfile) ("L" "org-protocol link" entry (file ,capfile)
"* %^{Title}\n[[%:link][%:description]]\n%U" "* %^{Title} :\\%note:\n[[%:link][%:description]]\n%U"
:immediate-finish t)))) :immediate-finish t))))
(setq org-refile-targets (quote ((nil :maxlevel . 9) (setq org-refile-targets (quote ((nil :maxlevel . 9)

View File

@ -181,36 +181,61 @@ vim is all about escape, not...ctrl+g???
#+END_SRC #+END_SRC
** ido ** ido
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package ido ;; (use-package ido
:ensure t ;; :ensure t
:bind ;; :bind
("C-x C-b" . 'ido-switch-buffer) ;; ("C-x C-b" . 'ido-switch-buffer)
("C-x b" . 'ibuffer) ;; ("C-x b" . 'ibuffer)
:config ;; :config
(ido-mode 1) ;; (ido-mode 1)
(setq ido-everywhere t) ;; (setq ido-everywhere t)
(setq ido-enable-flex-matching t) ;; (setq ido-enable-flex-matching t)
(setq ido-max-directory-size 100000) ;; (setq ido-max-directory-size 100000)
(setq ido-default-file-method 'selected-window) ;; (setq ido-default-file-method 'selected-window)
(setq ido-default-buffer-method 'selected-window) ;; (setq ido-default-buffer-method 'selected-window)
(use-package ido-vertical-mode ;; (use-package ido-vertical-mode
:ensure t ;; :ensure t
:init ;; :init
(ido-vertical-mode 1) ;; (ido-vertical-mode 1)
(setq ido-vertical-define-keys 'C-n-and-C-p-only))) ;; (setq ido-vertical-define-keys 'C-n-and-C-p-only)))
;; (setq ido-file-extensions-order '(".org" ".txt" ".py" ".emacs" ".xml" ".el" ".ini" ".cfg" ".cnf")) ;; (setq ido-file-extensions-order '(".org" ".txt" ".py" ".emacs" ".xml" ".el" ".ini" ".cfg" ".cnf"))
#+END_SRC #+END_SRC
** helm
#+BEGIN_SRC emacs-lisp
(use-package helm
:ensure t
:bind
("C-x C-f" . 'helm-find-files)
("C-x C-b" . 'helm-buffers-list)
("M-x" . 'helm-M-x)
("C-c h" . 'helm-command-prefix)
:init
(helm-mode 1)
:config
(setq helm-autoresize-max-height 0
helm-autoresize-max-height 40
helm-M-x-fuzzy-match t
helm-buffers-fuzzy-matching t
helm-recentf-fuzzy-match t
helm-semantic-fuzzy-match t
helm-imenu-fuzzy-match t
helm-scroll-amount 8
helm-echo-input-in-header-line t))
(helm-autoresize-mode 1)
(require 'helm-config)
#+END_SRC
** smex ** smex
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package smex ;; (use-package smex
:ensure t ;; :ensure t
:init ;; :init
(smex-initialize) ;; (smex-initialize)
:bind ;; :bind
("M-x" . 'smex) ;; ("M-x" . 'smex)
("M-X" . 'smex-major-mode-commands)) ;; ("M-X" . 'smex-major-mode-commands))
#+END_SRC #+END_SRC
** rainbow-delimiters ** rainbow-delimiters
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -689,11 +714,11 @@ There are several types of tags I use:
"* TODO %?\nDEADLINE: %^t\ndeliverable:\n%U\n") "* TODO %?\nDEADLINE: %^t\ndeliverable:\n%U\n")
("p" "org-protocol" entry (file ,capfile) ("p" "org-protocol" entry (file ,capfile)
"* %^{Title}\n%u\n#+BEGIN_QUOTE\n%i\n#+END_QUOTE" "* %^{Title} :\\%note:\n%u\n#+BEGIN_QUOTE\n%i\n#+END_QUOTE"
:immediate-finish t) :immediate-finish t)
("L" "org-protocol link" entry (file ,capfile) ("L" "org-protocol link" entry (file ,capfile)
"* %^{Title}\n[[%:link][%:description]]\n%U" "* %^{Title} :\\%note:\n[[%:link][%:description]]\n%U"
:immediate-finish t)))) :immediate-finish t))))
#+END_SRC #+END_SRC
** refile ** refile