|
|
@ -122,37 +122,22 @@
|
|
|
|
:ensure t
|
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
:config
|
|
|
|
(progn
|
|
|
|
(progn
|
|
|
|
|
|
|
|
(helm-mode 1)
|
|
|
|
|
|
|
|
(define-key global-map [remap find-file] 'helm-find-files)
|
|
|
|
|
|
|
|
(define-key global-map [remap occur] 'helm-occur)
|
|
|
|
|
|
|
|
(define-key global-map [remap list-buffers] 'helm-buffers-list)
|
|
|
|
|
|
|
|
(define-key global-map [remap dabbrev-expand] 'helm-dabbrev)
|
|
|
|
|
|
|
|
(define-key global-map [remap execute-extended-command] 'helm-M-x)
|
|
|
|
|
|
|
|
(define-key global-map [remap apropos-command] 'helm-apropos)
|
|
|
|
|
|
|
|
(unless (boundp 'completion-in-region-function)
|
|
|
|
|
|
|
|
(define-key lisp-interaction-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point)
|
|
|
|
|
|
|
|
(define-key emacs-lisp-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point))
|
|
|
|
(defun helm-surfraw-duck (x)
|
|
|
|
(defun helm-surfraw-duck (x)
|
|
|
|
"Search duckduckgo in default browser"
|
|
|
|
"Search duckduckgo in default browser"
|
|
|
|
(interactive "sSEARCH:")
|
|
|
|
(interactive "sSEARCH:")
|
|
|
|
(helm-surfraw x "duckduckgo" ))
|
|
|
|
(helm-surfraw x "duckduckgo" ))
|
|
|
|
(global-set-key (kbd "C-c s") 'helm-surfraw-duck)))
|
|
|
|
(global-set-key (kbd "C-c s") 'helm-surfraw-duck)))
|
|
|
|
|
|
|
|
|
|
|
|
(use-package smex
|
|
|
|
|
|
|
|
:ensure t
|
|
|
|
|
|
|
|
:config
|
|
|
|
|
|
|
|
(progn
|
|
|
|
|
|
|
|
(defadvice smex (around space-inserts-hyphen activate compile)
|
|
|
|
|
|
|
|
(let ((ido-cannot-complete-command
|
|
|
|
|
|
|
|
`(lambda ()
|
|
|
|
|
|
|
|
(interactive)
|
|
|
|
|
|
|
|
(if (string= " " (this-command-keys))
|
|
|
|
|
|
|
|
(insert ?-)
|
|
|
|
|
|
|
|
(funcall ,ido-cannot-complete-command)))))
|
|
|
|
|
|
|
|
ad-do-it))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "M-x") 'smex)
|
|
|
|
|
|
|
|
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
|
|
|
|
|
|
|
|
;; This is your old M-x.
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(use-package ido-vertical-mode
|
|
|
|
|
|
|
|
:ensure t
|
|
|
|
|
|
|
|
:config
|
|
|
|
|
|
|
|
(ido-mode 1)
|
|
|
|
|
|
|
|
(ido-vertical-mode 1)
|
|
|
|
|
|
|
|
(setq ido-vertical-define-keys 'C-n-and-C-p-only))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(use-package try
|
|
|
|
(use-package try
|
|
|
|
:ensure t)
|
|
|
|
:ensure t)
|
|
|
|
|
|
|
|
|
|
|
|