feat: Switch from ido/smex to Helm

This commit is contained in:
Vincent Ambo 2017-10-15 13:30:10 +02:00
parent bc12439cf7
commit 774aea8edd
3 changed files with 9 additions and 31 deletions

View file

@ -21,14 +21,13 @@
dash dash
dockerfile-mode dockerfile-mode
erlang erlang
flx-ido
flycheck flycheck
go-mode go-mode
gruber-darker-theme gruber-darker-theme
haskell-mode haskell-mode
helm
hi2 hi2
idle-highlight-mode idle-highlight-mode
ido-completing-read+
iy-go-to-char iy-go-to-char
magit magit
markdown-mode+ markdown-mode+
@ -42,9 +41,7 @@
rainbow-delimiters rainbow-delimiters
rainbow-mode rainbow-mode
rust-mode rust-mode
s
smart-mode-line smart-mode-line
smex
switch-window switch-window
terraform-mode terraform-mode
undo-tree undo-tree

View file

@ -96,7 +96,7 @@ Including indent-buffer, which should not be called automatically on save."
(defun esk-sudo-edit (&optional arg) (defun esk-sudo-edit (&optional arg)
(interactive "p") (interactive "p")
(if (or arg (not buffer-file-name)) (if (or arg (not buffer-file-name))
(find-file (concat "/sudo:root@localhost:" (ido-read-file-name "File: "))) (find-file (concat "/sudo:root@localhost:" (read-file-name "File: ")))
(find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name)))) (find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name))))
;; Evaluate sexp and replace it with result ;; Evaluate sexp and replace it with result

View file

@ -2,6 +2,13 @@
; ## Generic settings ## ; ## Generic settings ##
;; Make Helm go!
(require 'helm-config)
(global-set-key (kbd "M-x") #'helm-M-x)
(global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks)
(global-set-key (kbd "C-x C-f") #'helm-find-files)
(helm-mode 1)
; Hide those ugly tool bars ; Hide those ugly tool bars
(tool-bar-mode 0) (tool-bar-mode 0)
(scroll-bar-mode 0) (scroll-bar-mode 0)
@ -19,8 +26,6 @@
;; Go away go away ;; Go away go away
(setq initial-scratch-message "") (setq initial-scratch-message "")
(flx-ido-mode 1)
(setq ido-use-faces nil)
(setq gc-cons-threshold 20000000) (setq gc-cons-threshold 20000000)
(setq uniquify-buffer-name-style 'forward) (setq uniquify-buffer-name-style 'forward)
@ -72,35 +77,11 @@
(setq x-super-keysym 'meta (setq x-super-keysym 'meta
x-alt-keysym 'alt)) x-alt-keysym 'alt))
(setq smex-save-file (concat user-emacs-directory ".smex-items"))
(setq smex-key-advice-ignore-menu-bar t)
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)
(add-to-list 'safe-local-variable-values '(lexical-binding . t)) (add-to-list 'safe-local-variable-values '(lexical-binding . t))
(add-to-list 'safe-local-variable-values '(whitespace-line-column . 80)) (add-to-list 'safe-local-variable-values '(whitespace-line-column . 80))
(set-default 'indent-tabs-mode nil) (set-default 'indent-tabs-mode nil)
;; ido-mode is like magic pixie dust!
(ido-mode t)
;; ido-completing-read+ enables ido everywhere, not just for buffers and files.
(require 'ido-completing-read+)
(ido-ubiquitous-mode 1)
(setq ido-enable-prefix nil
ido-enable-flex-matching t
ido-auto-merge-work-directories-length nil
ido-create-new-buffer 'always
ido-use-filename-at-point 'guess
ido-use-virtual-buffers t
ido-handle-duplicate-virtual-buffers 2
ido-max-prospects 10)
;; Swedish!
(set-language-environment 'Swedish)
;; UTF-8 please ;; UTF-8 please
(setq locale-coding-system 'utf-8) ; pretty (setq locale-coding-system 'utf-8) ; pretty
(set-terminal-coding-system 'utf-8) ; pretty (set-terminal-coding-system 'utf-8) ; pretty