Bladeren bron

add scroll key bindings as scroll for term-mode

pull/1/head
10sr 12 jaren geleden
bovenliggende
commit
09672b95a2
1 gewijzigde bestanden met toevoegingen van 10 en 1 verwijderingen
  1. +10
    -1
      emacs.el

+ 10
- 1
emacs.el Bestand weergeven

@@ -994,7 +994,16 @@ delete; o: select other; j, l: enlarge; h, k: shrink; q: quit."
(define-key term-raw-map
"\C-x" (lookup-key (current-global-map) "\C-x"))
(define-key term-raw-map
"\C-z" (lookup-key (current-global-map) "\C-z")))
"\C-z" (lookup-key (current-global-map) "\C-z"))
)
;; (define-key term-raw-map "\C-xl" 'term-line-mode)
;; (define-key term-mode-map "\C-xc" 'term-char-mode)
(define-key term-raw-map (kbd "<up>")
(lambda () (interactive) (scroll-down 1)))
(define-key term-raw-map (kbd "<down>")
(lambda () (interactive) (scroll-up 1)))
(define-key term-raw-map (kbd "<right>") 'scroll-up)
(define-key term-raw-map (kbd "<left>") 'scroll-down)
(define-key term-raw-map (kbd "C-p") 'term-send-raw)
(define-key term-raw-map (kbd "C-n") 'term-send-raw)
(define-key term-raw-map "q" 'my-term-quit-or-send-raw)


Laden…
Annuleren
Opslaan