Fix #19: don't hijack Tab in magit buffers or in org-mode

This commit is contained in:
Henrik Lissner 2017-01-02 05:42:16 -05:00
parent 43be671008
commit 55c7555c00
2 changed files with 8 additions and 4 deletions

View file

@ -52,8 +52,9 @@
(use-package magit (use-package magit
:commands (magit-status) :commands (magit-status)
:config :config
;; Prevent magit and evil-snipe conflicts ;; Prevent magit + evil-snipe conflicts
(add-hook 'magit-mode-hook 'turn-off-evil-snipe-override-mode) (add-hook 'magit-mode-hook 'turn-off-evil-snipe-override-mode)
(map! :map magit-mode-map :m "<tab>" 'magit-section-toggle)
(require 'evil-magit)) (require 'evil-magit))
(after! vc-annotate (after! vc-annotate

View file

@ -250,7 +250,7 @@
:ni "C-S-h" 'doom/org-table-prepend-field-or-shift-left :ni "C-S-h" 'doom/org-table-prepend-field-or-shift-left
:ni "C-S-k" 'doom/org-table-prepend-row-or-shift-up :ni "C-S-k" 'doom/org-table-prepend-row-or-shift-up
:ni "C-S-j" 'doom/org-table-append-row-or-shift-down :ni "C-S-j" 'doom/org-table-append-row-or-shift-down
;; Navigate table cells
:i "C-L" 'doom/org-table-next-field :i "C-L" 'doom/org-table-next-field
:i "C-H" 'doom/org-table-previous-field :i "C-H" 'doom/org-table-previous-field
:i "C-K" 'doom/org-table-previous-row :i "C-K" 'doom/org-table-previous-row
@ -258,8 +258,11 @@
:i "C-e" 'org-end-of-line :i "C-e" 'org-end-of-line
:i "C-a" 'org-beginning-of-line :i "C-a" 'org-beginning-of-line
:i "<tab>" 'doom/org-indent
:i "<S-tab>" 'doom/org-dedent :i "<tab>" 'doom/org-indent-or-next-field
:i [S-iso-lefttab] 'doom/org-dedent-or-prev-field ; for GNU Emacs
:i [(shift tab)] 'doom/org-dedent-or-prev-field
:i [backtab] 'doom/org-dedent-or-prev-field
:nv "j" 'evil-next-visual-line :nv "j" 'evil-next-visual-line
:nv "k" 'evil-previous-visual-line :nv "k" 'evil-previous-visual-line