Minor refactors across the board
- when-let* -> when-let - Fix projectile-locate-dominating-file for connected remote files
This commit is contained in:
parent
4ecf6c9414
commit
9a02bd8ac8
42 changed files with 114 additions and 110 deletions
|
@ -33,7 +33,9 @@ ignored. This makes it easy to override built-in snippets with private ones."
|
|||
(interactive)
|
||||
(let* ((snippet (car (yas-active-snippets)))
|
||||
(active-field (yas--snippet-active-field snippet))
|
||||
(position (if (yas--field-p active-field) (yas--field-start active-field) -1)))
|
||||
(position (if (yas--field-p active-field)
|
||||
(yas--field-start active-field)
|
||||
-1)))
|
||||
(if (= (point) position)
|
||||
(move-beginning-of-line 1)
|
||||
(goto-char position))))
|
||||
|
@ -44,7 +46,9 @@ ignored. This makes it easy to override built-in snippets with private ones."
|
|||
(interactive)
|
||||
(let* ((snippet (car (yas-active-snippets)))
|
||||
(active-field (yas--snippet-active-field snippet))
|
||||
(position (if (yas--field-p active-field) (yas--field-end active-field) -1)))
|
||||
(position (if (yas--field-p active-field)
|
||||
(yas--field-end active-field)
|
||||
-1)))
|
||||
(if (= (point) position)
|
||||
(move-end-of-line 1)
|
||||
(goto-char position))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue