aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-01 18:23:19 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-01 18:23:19 +0100
commit5651d5c5bd23d9909559dbb25a5635a0eea88ff7 (patch)
tree47f4984894f2a46e72e80c16397440f9f72ebf28 /Emacs/.config/emacs
parent1e5c43b09e2b86b756173184fb4780372556961f (diff)
downloaddotfiles-5651d5c5bd23d9909559dbb25a5635a0eea88ff7.tar.gz
dotfiles-5651d5c5bd23d9909559dbb25a5635a0eea88ff7.tar.bz2
dotfiles-5651d5c5bd23d9909559dbb25a5635a0eea88ff7.zip
+a few bindings and eldoc
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r--Emacs/.config/emacs/config.org22
1 files changed, 20 insertions, 2 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 6326723..1f56fe0 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -256,6 +256,8 @@
(use-package dired
:straight nil
:hook (dired-mode . dired-hide-details-mode)
+ :bind (:map +evil/leader-map
+ ("d" . dired-jump))
:bind-keymap* ("C-c d" . dx:dired-map)
:after evil-collection
:init
@@ -356,7 +358,7 @@
#+BEGIN_SRC emacs-lisp
(use-package counsel
:after (ivy helpful)
- :bind (("C-s" . counsel-grep-or-swiper)
+ :bind (("C-s" . counsel-grep-or-swiper)
("C-x b" . counsel-switch-buffer)
("M-s r" . counsel-rg))
:config
@@ -380,6 +382,8 @@
(use-package projectile
:after evil
:hook (prog-mode . projectile-mode)
+ :bind (:map +evil/leader-map
+ ("p" . projectile-switch-buffer))
:bind-keymap* ("C-c C-p" . projectile-command-map)
:init
(setq projectile-tags-command "ctags -Re -f \"%s\" %s \"%s\"")
@@ -402,7 +406,9 @@
(use-package magit
:bind (("C-x g g" . magit-status)
("C-x g c" . magit-clone)
- ("C-x g l" . magit-log)))
+ ("C-x g l" . magit-log)
+ :map +evil/leader-map
+ ("g" . magit-status)))
(use-package evil-magit
:after magit)
@@ -499,6 +505,18 @@
#+BEGIN_SRC emacs-lisp
(add-hook 'prog-mode-hook #'show-paren-mode)
#+END_SRC
+** Eldoc
+ #+BEGIN_SRC emacs-lisp
+ (use-package eldoc
+ :hook (prog-mode . eldoc-mode))
+
+ (use-package eldoc-box
+ :hook (eglot--managed-mode . eldoc-box-hover-mode)
+ :custom
+ ((eldoc-box-max-pixel-height 15)
+ (eldoc-box-max-pixel-width 15)))
+ #+END_SRC
+
** Eglot
Eglot is a library of packages to communicate with LSP servers for better programming capabilities.
Interactions with a server provide results to the client, done through JSON.