Minor edits.
This commit is contained in:
parent
76ee161752
commit
4120f4e563
|
@ -107,8 +107,27 @@
|
||||||
:desc "Dired view file" "d v" #'dired-view-file)))
|
:desc "Dired view file" "d v" #'dired-view-file)))
|
||||||
;; Make 'h' and 'l' go back and forward in dired. Much faster to navigate the directory structure!
|
;; Make 'h' and 'l' go back and forward in dired. Much faster to navigate the directory structure!
|
||||||
(evil-define-key 'normal dired-mode-map
|
(evil-define-key 'normal dired-mode-map
|
||||||
|
(kbd "M-RET") 'dired-display-file
|
||||||
(kbd "h") 'dired-up-directory
|
(kbd "h") 'dired-up-directory
|
||||||
(kbd "l") 'dired-open-file) ; use dired-find-file instead if not using dired-open package
|
(kbd "l") 'dired-open-file ; use dired-find-file instead of dired-open.
|
||||||
|
(kbd "m") 'dired-mark
|
||||||
|
(kbd "t") 'dired-toggle-marks
|
||||||
|
(kbd "u") 'dired-unmark
|
||||||
|
(kbd "C") 'dired-do-copy
|
||||||
|
(kbd "D") 'dired-do-delete
|
||||||
|
(kbd "J") 'dired-goto-file
|
||||||
|
(kbd "M") 'dired-chmod
|
||||||
|
(kbd "O") 'dired-chown
|
||||||
|
(kbd "P") 'dired-do-print
|
||||||
|
(kbd "R") 'dired-rename
|
||||||
|
(kbd "T") 'dired-do-touch
|
||||||
|
(kbd "Y") 'dired-copy-filenamecopy-filename-as-kill ; copies filename to kill ring.
|
||||||
|
(kbd "+") 'dired-create-directory
|
||||||
|
(kbd "-") 'dired-up-directory
|
||||||
|
(kbd "% l") 'dired-downcase
|
||||||
|
(kbd "% u") 'dired-upcase
|
||||||
|
(kbd "; d") 'epa-dired-do-decrypt
|
||||||
|
(kbd "; e") 'epa-dired-do-encrypt)
|
||||||
;; If peep-dired is enabled, you will get image previews as you go up/down with 'j' and 'k'
|
;; If peep-dired is enabled, you will get image previews as you go up/down with 'j' and 'k'
|
||||||
(evil-define-key 'normal peep-dired-mode-map
|
(evil-define-key 'normal peep-dired-mode-map
|
||||||
(kbd "j") 'peep-dired-next-file
|
(kbd "j") 'peep-dired-next-file
|
||||||
|
|
|
@ -197,6 +197,8 @@ Dired is the file manager within Emacs. Below, I setup keybindings for image pr
|
||||||
| dired-find-file | /Go down in directory tree (or open if file)/ | l |
|
| dired-find-file | /Go down in directory tree (or open if file)/ | l |
|
||||||
| dired-next-line | Move down to next line | j |
|
| dired-next-line | Move down to next line | j |
|
||||||
| dired-previous-line | Move up to previous line | k |
|
| dired-previous-line | Move up to previous line | k |
|
||||||
|
| dired-mark | Mark file at point | m |
|
||||||
|
| dired-unmark | Unmark file at point | u |
|
||||||
|
|
||||||
** Keybindings Within Dired With Peep-Dired-Mode Enabled
|
** Keybindings Within Dired With Peep-Dired-Mode Enabled
|
||||||
| COMMAND | DESCRIPTION | KEYBINDING |
|
| COMMAND | DESCRIPTION | KEYBINDING |
|
||||||
|
@ -216,8 +218,27 @@ Dired is the file manager within Emacs. Below, I setup keybindings for image pr
|
||||||
:desc "Dired view file" "d v" #'dired-view-file)))
|
:desc "Dired view file" "d v" #'dired-view-file)))
|
||||||
;; Make 'h' and 'l' go back and forward in dired. Much faster to navigate the directory structure!
|
;; Make 'h' and 'l' go back and forward in dired. Much faster to navigate the directory structure!
|
||||||
(evil-define-key 'normal dired-mode-map
|
(evil-define-key 'normal dired-mode-map
|
||||||
|
(kbd "M-RET") 'dired-display-file
|
||||||
(kbd "h") 'dired-up-directory
|
(kbd "h") 'dired-up-directory
|
||||||
(kbd "l") 'dired-open-file) ; use dired-find-file instead if not using dired-open package
|
(kbd "l") 'dired-open-file ; use dired-find-file instead of dired-open.
|
||||||
|
(kbd "m") 'dired-mark
|
||||||
|
(kbd "t") 'dired-toggle-marks
|
||||||
|
(kbd "u") 'dired-unmark
|
||||||
|
(kbd "C") 'dired-do-copy
|
||||||
|
(kbd "D") 'dired-do-delete
|
||||||
|
(kbd "J") 'dired-goto-file
|
||||||
|
(kbd "M") 'dired-chmod
|
||||||
|
(kbd "O") 'dired-chown
|
||||||
|
(kbd "P") 'dired-do-print
|
||||||
|
(kbd "R") 'dired-rename
|
||||||
|
(kbd "T") 'dired-do-touch
|
||||||
|
(kbd "Y") 'dired-copy-filenamecopy-filename-as-kill ; copies filename to kill ring.
|
||||||
|
(kbd "+") 'dired-create-directory
|
||||||
|
(kbd "-") 'dired-up-directory
|
||||||
|
(kbd "% l") 'dired-downcase
|
||||||
|
(kbd "% u") 'dired-upcase
|
||||||
|
(kbd "; d") 'epa-dired-do-decrypt
|
||||||
|
(kbd "; e") 'epa-dired-do-encrypt)
|
||||||
;; If peep-dired is enabled, you will get image previews as you go up/down with 'j' and 'k'
|
;; If peep-dired is enabled, you will get image previews as you go up/down with 'j' and 'k'
|
||||||
(evil-define-key 'normal peep-dired-mode-map
|
(evil-define-key 'normal peep-dired-mode-map
|
||||||
(kbd "j") 'peep-dired-next-file
|
(kbd "j") 'peep-dired-next-file
|
||||||
|
|
|
@ -17,18 +17,6 @@
|
||||||
(run-shell-command "xmodmap ~/.Xmodmap")
|
(run-shell-command "xmodmap ~/.Xmodmap")
|
||||||
(run-shell-command "./.config/herbstluftwm/panel.sh")
|
(run-shell-command "./.config/herbstluftwm/panel.sh")
|
||||||
|
|
||||||
(defun show-kernel ()
|
|
||||||
(let ((ip (run-shell-command "uname -r" t)))
|
|
||||||
(substitute #\Space #\Newline ip)))
|
|
||||||
|
|
||||||
(defun show-hostname ()
|
|
||||||
(let ((host-name (run-shell-command "cat /etc/hostname" t)))
|
|
||||||
(substitute #\Space #\Newline host-name)))
|
|
||||||
|
|
||||||
(defun show-package-count ()
|
|
||||||
(let ((host-name (run-shell-command "pacman -Q | wc -l" t)))
|
|
||||||
(substitute #\Space #\Newline host-name)))
|
|
||||||
|
|
||||||
(defvar color1 "#ff92d0")
|
(defvar color1 "#ff92d0")
|
||||||
(defvar color2 "#282a36")
|
(defvar color2 "#282a36")
|
||||||
|
|
||||||
|
@ -185,7 +173,3 @@
|
||||||
(define-frame-preference "Shareland"
|
(define-frame-preference "Shareland"
|
||||||
(0 t nil :class "XTerm")
|
(0 t nil :class "XTerm")
|
||||||
(1 nil t :class "aMule"))
|
(1 nil t :class "aMule"))
|
||||||
|
|
||||||
(define-frame-preference "Emacs"
|
|
||||||
(1 t t :restore "emacs-editing-dump" :title "...xdvi")
|
|
||||||
(0 t t :create "emacs-dump" :class "Emacs"))
|
|
||||||
|
|
Loading…
Reference in New Issue