Add link-hint package
Use link-hint package. Bind it to `SPC x o` and `SPC x O`.
This commit is contained in:
parent
e19abfc559
commit
324c2fa8d8
|
@ -2184,9 +2184,6 @@ Text related commands (start with ~x~):
|
|||
|
||||
| Key Binding | Description |
|
||||
|-------------+---------------------------------------------------------------|
|
||||
| ~SPC x o~ | use avy to select a link in the buffer and open it |
|
||||
| ~SPC x u~ | set the selected text to lower case |
|
||||
| ~SPC x U~ | set the selected text to upper case |
|
||||
| ~SPC x a a~ | align region (or guessed section) using default rules |
|
||||
| ~SPC x a r~ | align region using user-specified regexp |
|
||||
| ~SPC x a m~ | align region at arithmetic operators (+-*/) |
|
||||
|
@ -2210,9 +2207,13 @@ Text related commands (start with ~x~):
|
|||
| ~SPC x K~ | move up a line of text (enter transient-state) |
|
||||
| ~SPC x l s~ | sort lines |
|
||||
| ~SPC x l u~ | uniquify lines |
|
||||
| ~SPC x o~ | use avy to select a link in the frame and open it |
|
||||
| ~SPC x O~ | use avy to select multiple links in the frame and open them |
|
||||
| ~SPC x t c~ | swap (transpose) the current character with the previous one |
|
||||
| ~SPC x t w~ | swap (transpose) the current word with the previous one |
|
||||
| ~SPC x t l~ | swap (transpose) the current line with the previous one |
|
||||
| ~SPC x u~ | set the selected text to lower case |
|
||||
| ~SPC x U~ | set the selected text to upper case |
|
||||
| ~SPC x w c~ | count the number of occurrences per word in the select region |
|
||||
| ~SPC x w d~ | show dictionary entry of word from wordnik.com |
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
open-junk-file
|
||||
leuven-theme
|
||||
linum-relative
|
||||
link-hint
|
||||
lorem-ipsum
|
||||
move-text
|
||||
neotree
|
||||
|
@ -394,7 +395,7 @@
|
|||
(defun spacemacs/init-avy ()
|
||||
(use-package avy
|
||||
:defer t
|
||||
:commands (spacemacs/avy-open-url spacemacs/avy-goto-url avy-pop-mark)
|
||||
:commands (spacemacs/avy-goto-url avy-pop-mark)
|
||||
:init
|
||||
(progn
|
||||
(setq avy-all-windows 'all-frames)
|
||||
|
@ -405,20 +406,12 @@
|
|||
"jl" 'evil-avy-goto-line
|
||||
"ju" 'avy-pop-mark
|
||||
"jU" 'spacemacs/avy-goto-url
|
||||
"jw" 'evil-avy-goto-word-or-subword-1
|
||||
"xo" 'spacemacs/avy-open-url))
|
||||
"jw" 'evil-avy-goto-word-or-subword-1))
|
||||
:config
|
||||
(progn
|
||||
(defun spacemacs/avy-goto-url()
|
||||
"Use avy to go to an URL in the buffer."
|
||||
(interactive)
|
||||
(avy--generic-jump "https?://" nil 'pre))
|
||||
(defun spacemacs/avy-open-url ()
|
||||
"Use avy to select an URL in the buffer and open it."
|
||||
(interactive)
|
||||
(save-excursion
|
||||
(spacemacs/avy-goto-url)
|
||||
(browse-url-at-point))))))
|
||||
(defun spacemacs/avy-goto-url()
|
||||
"Use avy to go to an URL in the buffer."
|
||||
(interactive)
|
||||
(avy--generic-jump "https?://" nil 'pre))))
|
||||
|
||||
(defun spacemacs/init-bracketed-paste ()
|
||||
(use-package bracketed-paste
|
||||
|
@ -1179,6 +1172,14 @@ on whether the spacemacs-ivy layer is used or not, with
|
|||
:defer t
|
||||
:init (setq org-fontify-whole-heading-line t)))
|
||||
|
||||
(defun spacemacs/init-link-hint ()
|
||||
(use-package link-hint
|
||||
:defer t
|
||||
:init
|
||||
(spacemacs/set-leader-keys
|
||||
"xo" 'link-hint-open-link
|
||||
"xO" 'link-hint-open-multiple-links)))
|
||||
|
||||
(defun spacemacs/init-linum-relative ()
|
||||
(use-package linum-relative
|
||||
:commands (linum-relative-toggle linum-relative-on)
|
||||
|
|
Loading…
Reference in a new issue