Browse Source

Narrow/widen keybind, image-dired rebind

* Add command to toggle narrow/widen
* Rebind image-dired keys so they don't stomp my keybinds
master
Macoy Madson 2 years ago
parent
commit
eb4429426c
2 changed files with 24 additions and 0 deletions
  1. +13
    -0
      Emacs/keybinds.el
  2. +11
    -0
      Emacs/visual-early.el

+ 13
- 0
Emacs/keybinds.el View File

@ -193,6 +193,19 @@
(define-key dired-mode-map (kbd "S-<return>") 'dired-find-file)
;; Was dired-up-directory
(define-key dired-mode-map (kbd "<backspace>") (lambda () (interactive) (find-alternate-file "..")))
(define-key dired-mode-map "\C-t" 'split-window-horizontally)
(define-key dired-mode-map "\M-id" 'image-dired-display-thumbs)
(define-key dired-mode-map "\M-it" 'image-dired-tag-files)
(define-key dired-mode-map "\M-ir" 'image-dired-delete-tag)
(define-key dired-mode-map "\M-ij" 'image-dired-jump-thumbnail-buffer)
(define-key dired-mode-map "\M-ii" 'image-dired-dired-display-image)
(define-key dired-mode-map "\M-ix" 'image-dired-dired-display-external)
(define-key dired-mode-map "\M-ia" 'image-dired-display-thumbs-append)
(define-key dired-mode-map "\M-i." 'image-dired-display-thumb)
(define-key dired-mode-map "\M-ic" 'image-dired-dired-comment-files)
(define-key dired-mode-map "\M-if" 'image-dired-mark-tagged-files)
(define-key dired-mode-map "\M-i\C-t" 'image-dired-dired-toggle-marked-thumbs)
(define-key dired-mode-map "\M-ie" 'image-dired-dired-edit-comment-and-tags)
(when (require 'dired-narrow)
(define-key dired-mode-map (kbd "f") 'dired-narrow-fuzzy))


+ 11
- 0
Emacs/visual-early.el View File

@ -142,6 +142,17 @@
(global-set-key (kbd "S-<f9>") 'macoy-toggle-whitespace-mode)
)
;;
;; Narrow/widen
;;
(defun macoy-toggle-narrow ()
(interactive)
(if (buffer-narrowed-p)
(widen)
(narrow-to-defun)))
(global-set-key (kbd "C-S-<f9>") 'macoy-toggle-narrow)
;;
;; Auto Theming
;;


Loading…
Cancel
Save