30 lines
1.2 KiB
EmacsLisp
30 lines
1.2 KiB
EmacsLisp
(global-set-key "\C-s" 'swiper)
|
|
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
|
(global-set-key (kbd "<f6>") 'ivy-resume)
|
|
(global-set-key (kbd "M-x") 'counsel-M-x)
|
|
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
|
|
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
|
|
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
|
|
(global-set-key (kbd "<f1> l") 'counsel-load-library)
|
|
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
|
|
(global-set-key (kbd "<f2> u") 'counsel-unicode-char)
|
|
(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit)
|
|
(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit)
|
|
(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit)
|
|
(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit)
|
|
(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit)
|
|
(global-set-key [f8] 'neotree-toggle)
|
|
(defun gcm-scroll-down ()
|
|
(interactive)
|
|
(scroll-up 1))
|
|
|
|
(defun gcm-scroll-up ()
|
|
(interactive)
|
|
(scroll-down 1))
|
|
|
|
(global-set-key [(control down)] 'gcm-scroll-down)
|
|
(global-set-key [(control up)] 'gcm-scroll-up)
|
|
|
|
(global-set-key [(control next)] 'gcm-scroll-down)
|
|
(global-set-key [(control prior)] 'gcm-scroll-up)
|