mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Use :bind properly
This commit is contained in:
parent
dd7814950c
commit
e6e9a9f954
19
init.org
19
init.org
@ -568,7 +568,7 @@
|
|||||||
|
|
||||||
;; A Git porcelain inside Emacs.
|
;; A Git porcelain inside Emacs.
|
||||||
(use-package magit
|
(use-package magit
|
||||||
:bind (("C-c m" . magit-status)))
|
:bind ("C-c m" . magit-status))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -607,7 +607,7 @@
|
|||||||
|
|
||||||
;; Manage and navigate projects in Emacs easily
|
;; Manage and navigate projects in Emacs easily
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:bind (("C-c p" . 'projectile-command-map)))
|
:bind ("C-c p" . projectile-command-map))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -623,7 +623,7 @@
|
|||||||
|
|
||||||
;; Incremental Vertical completion
|
;; Incremental Vertical completion
|
||||||
(use-package ivy
|
(use-package ivy
|
||||||
:bind (("C-x b" . 'ivy-switch-buffer))
|
:bind ("C-x b" . ivy-switch-buffer)
|
||||||
:config
|
:config
|
||||||
(setq ivy-wrap t ; Easier access to the last candidate
|
(setq ivy-wrap t ; Easier access to the last candidate
|
||||||
ivy-height 25 ; Give me more candidates to look at
|
ivy-height 25 ; Give me more candidates to look at
|
||||||
@ -655,9 +655,9 @@
|
|||||||
;; Various completion functions using Ivy
|
;; Various completion functions using Ivy
|
||||||
(use-package counsel
|
(use-package counsel
|
||||||
:bind
|
:bind
|
||||||
(("M-x" . 'counsel-M-x)
|
(("M-x" . counsel-M-x)
|
||||||
("M-y" . 'counsel-yank-pop)
|
("M-y" . counsel-yank-pop)
|
||||||
("C-x C-f" . 'counsel-find-file)))
|
("C-x C-f" . counsel-find-file)))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -667,7 +667,7 @@
|
|||||||
|
|
||||||
;; Isearch with an overview. Oh, man!
|
;; Isearch with an overview. Oh, man!
|
||||||
(use-package swiper
|
(use-package swiper
|
||||||
:bind (("C-c i" . 'swiper-isearch)))
|
:bind ("C-c i" . swiper-isearch))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -724,7 +724,8 @@
|
|||||||
|
|
||||||
;; Modular text completion framework
|
;; Modular text completion framework
|
||||||
(use-package company
|
(use-package company
|
||||||
:bind (:map company-active-map
|
:bind (;; Note that a bug (probably) makes the quotes necessary here
|
||||||
|
:map company-active-map
|
||||||
("C-d" . 'company-show-doc-buffer)
|
("C-d" . 'company-show-doc-buffer)
|
||||||
("C-n" . 'company-select-next)
|
("C-n" . 'company-select-next)
|
||||||
("C-p" . 'company-select-previous))
|
("C-p" . 'company-select-previous))
|
||||||
@ -796,7 +797,7 @@
|
|||||||
;; display the definition of word at point
|
;; display the definition of word at point
|
||||||
(use-package define-word
|
(use-package define-word
|
||||||
:defer t
|
:defer t
|
||||||
:bind (("C-c D" . 'define-word-at-point)))
|
:bind ("C-c D" . define-word-at-point))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user