mirror of
https://codeberg.org/scip/viking-mode.git
synced 2025-12-18 13:01:03 +01:00
fixed doc
This commit is contained in:
15
README.md
15
README.md
@@ -5,7 +5,8 @@ Kill first, ask later - an emacs mode for killing things quickly
|
|||||||
|
|
||||||
Viking minor mode enables you to delete things at point with one key
|
Viking minor mode enables you to delete things at point with one key
|
||||||
stroke at once. More and more will be deleted if you repeat the key
|
stroke at once. More and more will be deleted if you repeat the key
|
||||||
stroke.
|
stroke. As visual feedback the thing to be deleted will be highlighted
|
||||||
|
shortly.
|
||||||
|
|
||||||
The default key binding is C-d, but you may also bind it to C-k or
|
The default key binding is C-d, but you may also bind it to C-k or
|
||||||
whatever you wish.
|
whatever you wish.
|
||||||
@@ -51,6 +52,10 @@ it into berserk mode by setting 'viking-really-delete to t:
|
|||||||
|
|
||||||
(setq viking-really-delete t)
|
(setq viking-really-delete t)
|
||||||
|
|
||||||
|
You can change the default key binding by:
|
||||||
|
|
||||||
|
(define-key viking-mode-map (kbd "C-k") 'vk/kill-thing-at-point)
|
||||||
|
|
||||||
In case you don't like the default key binding cascade, you may also
|
In case you don't like the default key binding cascade, you may also
|
||||||
use separate bindings for each kill function, e.g.:
|
use separate bindings for each kill function, e.g.:
|
||||||
|
|
||||||
@@ -61,6 +66,14 @@ use separate bindings for each kill function, e.g.:
|
|||||||
(define-key viking-mode-map (kbd "C-d p") 'vk/kill-paragraph)
|
(define-key viking-mode-map (kbd "C-d p") 'vk/kill-paragraph)
|
||||||
(define-key viking-mode-map (kbd "C-d a") 'vk/kill-buffer)
|
(define-key viking-mode-map (kbd "C-d a") 'vk/kill-buffer)
|
||||||
|
|
||||||
|
Also, the font face of the short highlight can be modified:
|
||||||
|
|
||||||
|
M-x customize-face (select viking-blink)
|
||||||
|
|
||||||
|
Or, modify all available viking-mode variables interactively with:
|
||||||
|
|
||||||
|
M-x customize-group (select viking-mode)
|
||||||
|
|
||||||
Besides, the primary function of viking-mode is vk/last-key-repeats,
|
Besides, the primary function of viking-mode is vk/last-key-repeats,
|
||||||
which returns the number of times the last key have been pressed.
|
which returns the number of times the last key have been pressed.
|
||||||
This can be used for other things as well, for example:
|
This can be used for other things as well, for example:
|
||||||
|
|||||||
@@ -33,7 +33,8 @@
|
|||||||
|
|
||||||
;; Viking minor mode enables you to delete things at point with one
|
;; Viking minor mode enables you to delete things at point with one
|
||||||
;; key stroke at once. More and more will be deleted if you repeat the
|
;; key stroke at once. More and more will be deleted if you repeat the
|
||||||
;; key stroke.
|
;; key stroke. As visual feedback the thing to be deleted will be
|
||||||
|
;; highlighted shortly.
|
||||||
|
|
||||||
;; The default key binding is C-d, but you may also bind it to C-k or
|
;; The default key binding is C-d, but you may also bind it to C-k or
|
||||||
;; whatever you wish.
|
;; whatever you wish.
|
||||||
@@ -75,6 +76,12 @@
|
|||||||
|
|
||||||
;; (setq viking-really-delete t)
|
;; (setq viking-really-delete t)
|
||||||
|
|
||||||
|
;; You can change the default key binding by:
|
||||||
|
|
||||||
|
;; (define-key viking-mode-map (kbd "C-k") 'vk/kill-thing-at-point)
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
;; In case you don't like the default key binding cascade, you may
|
;; In case you don't like the default key binding cascade, you may
|
||||||
;; also use separate bindings for each kill function, e.g.:
|
;; also use separate bindings for each kill function, e.g.:
|
||||||
|
|
||||||
@@ -85,6 +92,14 @@
|
|||||||
;; (define-key viking-mode-map (kbd "C-d p") 'vk/kill-paragraph)
|
;; (define-key viking-mode-map (kbd "C-d p") 'vk/kill-paragraph)
|
||||||
;; (define-key viking-mode-map (kbd "C-d a") 'vk/kill-buffer)
|
;; (define-key viking-mode-map (kbd "C-d a") 'vk/kill-buffer)
|
||||||
|
|
||||||
|
;; Also, the font face of the short highlight can be modified:
|
||||||
|
|
||||||
|
;; M-x customize-face (select viking-blink)
|
||||||
|
|
||||||
|
;; Or, modify all available viking-mode variables interactively with:
|
||||||
|
|
||||||
|
;; M-x customize-group (select viking-mode)
|
||||||
|
|
||||||
;; Besides, the primary function of viking-mode is vk/last-key-repeats,
|
;; Besides, the primary function of viking-mode is vk/last-key-repeats,
|
||||||
;; which returns the number of times the last key have been pressed.
|
;; which returns the number of times the last key have been pressed.
|
||||||
;; This can be used for other things as well, for example:
|
;; This can be used for other things as well, for example:
|
||||||
@@ -340,3 +355,6 @@ kill function then."
|
|||||||
|
|
||||||
;; un-*ing-believable: I'm done *g*
|
;; un-*ing-believable: I'm done *g*
|
||||||
(provide 'viking-mode)
|
(provide 'viking-mode)
|
||||||
|
|
||||||
|
|
||||||
|
;;; viking-mode.el ends here
|
||||||
|
|||||||
Reference in New Issue
Block a user