Use use-package to configure smex

This commit is contained in:
Tom Willemse 2016-06-10 15:00:19 +02:00
parent d860ba44db
commit 158dee8be2

View file

@ -24,8 +24,7 @@
(require 'eww)
(require 'php-mode)
(require 'projectile)
(require 'slime)
(require 'smex))
(require 'slime))
(load (concat user-emacs-directory "init2"))
@ -348,9 +347,6 @@ MODE1 is enabled and vice-versa."
(clisp ("clisp") :coding-system utf-8-unix))
slime-default-lisp 'sbcl))
(stante-after smex
(setq smex-save-file "~/.emacs.d/smex-items"))
(stante-after "startup"
(setq inhibit-default-init t)
(setq inhibit-startup-message t)
@ -451,6 +447,15 @@ MODE1 is enabled and vice-versa."
:config
(setq slack-buffer-function 'switch-to-buffer))
(use-package smex
:ensure t
:commands (smex-initialize)
:bind (("M-x" . smex)
("C-M-x" . smex-major-mode-commands))
:init (smex-initialize)
:config
(setq smex-save-file (concat user-emacs-directory "data/smex-items")))
;;;; Hooks
;; Automatically make shell scripts executable after saving.
@ -649,7 +654,6 @@ MODE1 is enabled and vice-versa."
(global-set-key (kbd "C-M-SPC") 'er/expand-region)
(global-set-key (kbd "C-M-d") 'kill-word)
(global-set-key (kbd "C-M-w") 'backward-kill-word)
(global-set-key (kbd "C-M-x") 'smex-major-mode-commands)
(global-set-key (kbd "C-M-z") 'oni:indent-defun)
(global-set-key (kbd "C-S-k") 'kill-whole-line)
(global-set-key (kbd "C-c +") 'oni:increase-number-at-point)
@ -715,7 +719,6 @@ MODE1 is enabled and vice-versa."
(oni:eval-after-init
(ido-ubiquitous-mode)
(smex-initialize)
(global-diff-hl-mode)
(desktop-registry-auto-register)
(yas-global-mode)