Add MELPA link and remove quelpa instructions.

This commit is contained in:
tastytea 2020-03-15 21:10:15 +01:00
parent d50c5d122f
commit 9c5e0dde16
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 14 additions and 19 deletions

View File

@ -13,6 +13,7 @@ across all files or individually for each buffer.
* Cycle through all position registers in both directions. * Cycle through all position registers in both directions.
* Clear current register. * Clear current register.
* Store point in unused register (range configurable).
## Installation ## Installation
@ -20,32 +21,32 @@ across all files or individually for each buffer.
from the namespace. To conform with MELPA rules the separator has been from the namespace. To conform with MELPA rules the separator has been
changed to “-”. changed to “-”.
To use `register-quicknav.el`, put it in your load-path and add the following To use `register-quicknav.el`, get it from
to your init.el: [MELPA](https://melpa.org/#/register-quicknav) or put it in your load-path
and add the following to your init.el:
(require 'register-quicknav) (require 'register-quicknav)
(global-set-key (kbd "<C-f5>") #'register-quicknav-prev-register) (global-set-key (kbd "<C-f5>") #'register-quicknav-prev-register)
(global-set-key (kbd "<C-f6>") #'register-quicknav-next-register) (global-set-key (kbd "<C-f6>") #'register-quicknav-next-register)
(global-set-key (kbd "M-r") #'register-quicknav-clear-current-register) (global-set-key (kbd "M-r") #'register-quicknav-clear-current-register)
(global-set-key (kbd "C-M-r") #'register-quicknav-point-to-unused-register)
Or, with use-package: Or, with use-package:
(use-package register-quicknav (use-package register-quicknav
:bind (("C-<f5>" . register-quicknav-prev-register) :bind (("C-<f5>" . register-quicknav-prev-register)
("C-<f6>" . register-quicknav-next-register) ("C-<f6>" . register-quicknav-next-register)
("M-r" . register-quicknav-clear-current-register))) ("M-r" . register-quicknav-clear-current-register)
("C-M-r" . register-quicknav-point-to-unused-register))
Instead of manually copying `register-quicknav.el` into your load-path, you
can use [quelpa](https://github.com/quelpa/quelpa):
(quelpa '(register-quicknav
:fetcher git
:url "https://schlomp.space/tastytea/register-quicknav.git"))
## Variables ## Variables
* `register-quicknav-buffer-only`: Cycle only through position registers in * `register-quicknav-buffer-only`: Cycle only through position registers in
current buffer. Can be safely set as file- and/or dir-local variable. current buffer. Can be safely set as file- and/or dir-local variable.
* `register-quicknav-unused-registers-begin`: Begin of range for
`register-quicknav-point-to-unused-register`.
* `register-quicknav-unused-registers-end`: End of range for
`register-quicknav-point-to-unused-register`.
--- ---

View File

@ -39,8 +39,9 @@
;; from the namespace. To conform with MELPA rules the separator has been ;; from the namespace. To conform with MELPA rules the separator has been
;; changed to “-”. ;; changed to “-”.
;; ;;
;; To use `register-quicknav.el', put it in your load-path and add the following ;; To use `register-quicknav.el', get it from
;; to your init.el: ;; [MELPA](https://melpa.org/#/register-quicknav) or put it in your load-path
;; and add the following to your init.el:
;; ;;
;; (require 'register-quicknav) ;; (require 'register-quicknav)
;; (global-set-key (kbd "<C-f5>") #'register-quicknav-prev-register) ;; (global-set-key (kbd "<C-f5>") #'register-quicknav-prev-register)
@ -53,13 +54,6 @@
;; :bind (("C-<f5>" . register-quicknav-prev-register) ;; :bind (("C-<f5>" . register-quicknav-prev-register)
;; ("C-<f6>" . register-quicknav-next-register) ;; ("C-<f6>" . register-quicknav-next-register)
;; ("M-r" . register-quicknav-clear-current-register))) ;; ("M-r" . register-quicknav-clear-current-register)))
;;
;; Instead of manually copying `register-quicknav.el' into your load-path, you
;; can use [quelpa](https://github.com/quelpa/quelpa):
;;
;; (quelpa '(register-quicknav
;; :fetcher git
;; :url "https://schlomp.space/tastytea/register-quicknav.git"))
;; Variables: ;; Variables:
;; ;;