Replace ivy buffer browser with iBuffer
This commit is contained in:
parent
107a59f9b0
commit
a2b6b18a7d
5 changed files with 14 additions and 5 deletions
10
01mac.el
10
01mac.el
|
|
@ -75,6 +75,16 @@
|
||||||
;; Kill current buffer and window
|
;; Kill current buffer and window
|
||||||
(global-set-key (kbd "C-c q") 'kill-buffer-and-window)
|
(global-set-key (kbd "C-c q") 'kill-buffer-and-window)
|
||||||
|
|
||||||
|
;; ibuffer
|
||||||
|
(global-set-key (kbd "C-c b") 'ibuffer)
|
||||||
|
|
||||||
|
;; Revert without asking
|
||||||
|
(defun revert-buffer-no-confirm ()
|
||||||
|
"Revert buffer without confirmation."
|
||||||
|
(interactive) (revert-buffer t t))
|
||||||
|
|
||||||
|
(global-set-key (kbd "C-c r") 'revert-buffer-no-confirm)
|
||||||
|
|
||||||
;; Create new terminal
|
;; Create new terminal
|
||||||
(global-set-key (kbd "<f12>") (lambda ()
|
(global-set-key (kbd "<f12>") (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
|
||||||
1
02ivy.el
1
02ivy.el
|
|
@ -10,7 +10,6 @@
|
||||||
ivy-display-style 'fancy)) ;; Formatting style
|
ivy-display-style 'fancy)) ;; Formatting style
|
||||||
|
|
||||||
(global-set-key (kbd "C-c a") 'counsel-ag)
|
(global-set-key (kbd "C-c a") 'counsel-ag)
|
||||||
(global-set-key (kbd "C-c b") 'ivy-switch-buffer)
|
|
||||||
(global-set-key (kbd "C-c t") 'counsel-find-file)
|
(global-set-key (kbd "C-c t") 'counsel-find-file)
|
||||||
(global-set-key (kbd "C-c C-s") 'swiper) ;; Find things by regexp
|
(global-set-key (kbd "C-c C-s") 'swiper) ;; Find things by regexp
|
||||||
(global-set-key (kbd "M-x") 'counsel-M-x) ;; M-x on steroids
|
(global-set-key (kbd "M-x") 'counsel-M-x) ;; M-x on steroids
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ _t_: Find file _g_: ag in current project _M_: Git blame
|
||||||
("q" nil "cancel" :color pink)
|
("q" nil "cancel" :color pink)
|
||||||
|
|
||||||
("a" counsel-ag)
|
("a" counsel-ag)
|
||||||
("b" ivy-switch-buffer)
|
("b" ibuffer)
|
||||||
("t" counsel-find-file)
|
("t" counsel-find-file)
|
||||||
("s" counsel-projectile-switch-project)
|
("s" counsel-projectile-switch-project)
|
||||||
("f" counsel-projectile-find-file)
|
("f" counsel-projectile-find-file)
|
||||||
|
|
|
||||||
|
|
@ -66,10 +66,10 @@
|
||||||
(setq-local
|
(setq-local
|
||||||
ctags/refresh-command
|
ctags/refresh-command
|
||||||
(format
|
(format
|
||||||
"ctags -e -R --languages=erlang -f %sTAGS %ssrc %sdeps %sapps %s_build %slib/stdlib-* %slib/kernel-*"
|
"ctags -e -R --languages=erlang -f %sTAGS %ssrc %sdeps %sapps %s_build %stest %slib/stdlib-* %slib/kernel-*"
|
||||||
|
(projectile-project-root) (projectile-project-root)
|
||||||
(projectile-project-root) (projectile-project-root)
|
(projectile-project-root) (projectile-project-root)
|
||||||
(projectile-project-root) (projectile-project-root)
|
(projectile-project-root) (projectile-project-root)
|
||||||
(projectile-project-root)
|
|
||||||
(plist-get erlang/current-erlang :erlang-path)
|
(plist-get erlang/current-erlang :erlang-path)
|
||||||
(plist-get erlang/current-erlang :erlang-path)))
|
(plist-get erlang/current-erlang :erlang-path)))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
(if (display-graphic-p)
|
(if (display-graphic-p)
|
||||||
(progn
|
(progn
|
||||||
(sml/apply-theme 'respectful)
|
(sml/apply-theme 'respectful)
|
||||||
(enable-theme 'base16-not-harmonic))
|
(enable-theme 'base16-one-light))
|
||||||
(progn
|
(progn
|
||||||
(enable-theme 'base16-mexico-light)
|
(enable-theme 'base16-mexico-light)
|
||||||
(setq base16-theme-256-color-source "base16-shell")))
|
(setq base16-theme-256-color-source "base16-shell")))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue