Skip to content

Commit 384a9ab

Browse files
committed
Update init.el
1 parent 7dfcc43 commit 384a9ab

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

Diff for: init.el

+30-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
paredit
2222
slime
2323
ac-slime
24-
w3m))
24+
w3m
25+
smex))
2526

2627
;; ----- keybind ----- ;;
2728

@@ -44,13 +45,16 @@
4445
(set-face-foreground 'font-lock-comment-face "#ee0909")
4546
(show-paren-mode t)
4647

47-
;; -- icomplete-mode -- ;;
48-
(icomplete-mode 1)
49-
;; enable to toggle candidates by C-f or C-b
50-
(add-hook 'icomplete-minibuffer-setup-hook
51-
'(lambda ()
52-
(local-set-key "\C-f" 'icomplete-forward-completions)
53-
(local-set-key "\C-b" 'icomplete-backward-completions)))
48+
;; -- ido-mode -- ;;
49+
(require 'ido)
50+
(ido-mode t)
51+
(ido-everywhere t)
52+
(setq ido-enable-flex-matching t)
53+
54+
;; smex
55+
(require 'smex)
56+
(global-set-key (kbd "M-x") 'smex)
57+
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
5458

5559
;; -- -- ;;
5660

@@ -122,6 +126,10 @@
122126
#'(define-key paredit-mode-map (kbd "C-c b") 'paredit-forward-barf-sexp))
123127
(eval-after-load "paredit"
124128
#'(define-key paredit-mode-map (kbd "C-h") 'paredit-backward-delete))
129+
(eval-after-load "paredit"
130+
#'(define-key paredit-mode-map (kbd "M-p") 'paredit-backward))
131+
(eval-after-load "paredit"
132+
#'(define-key paredit-mode-map (kbd "M-n") 'paredit-forward))
125133
(global-set-key (kbd "C-c m p") 'paredit-mode)
126134

127135
(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
@@ -132,3 +140,17 @@
132140
;; --- auto settings --- ;;
133141
;; --------------------- ;;
134142

143+
(put 'dired-find-alternate-file 'disabled nil)
144+
(custom-set-variables
145+
;; custom-set-variables was added by Custom.
146+
;; If you edit it by hand, you could mess it up, so be careful.
147+
;; Your init file should contain only one such instance.
148+
;; If there is more than one, they won't work right.
149+
'(magit-merge-arguments (quote ("--no-ff")))
150+
'(package-selected-packages (quote (smex w3m paredit markdown-mode magit ac-slime))))
151+
(custom-set-faces
152+
;; custom-set-faces was added by Custom.
153+
;; If you edit it by hand, you could mess it up, so be careful.
154+
;; Your init file should contain only one such instance.
155+
;; If there is more than one, they won't work right.
156+
)

0 commit comments

Comments
 (0)