Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect indentation #16

Open
Vurp opened this issue Jun 30, 2022 · 1 comment
Open

Incorrect indentation #16

Vurp opened this issue Jun 30, 2022 · 1 comment

Comments

@Vurp
Copy link

Vurp commented Jun 30, 2022

When using evil-lion functions on lisp forms the result always gets
two spaces as indentation regardless. For example gl<space> gives this result
(<m> refers to the mark and | refers to point):

Before:

(prog1 'evil-surround
  (add-to-list 'package-selected-packages 'evil-surround)
  (when (fboundp 'evil-surround-mode)
    (autoload #'evil-surround-edit "evil-surround" nil t)
    (autoload #'evil-Surround-edit "evil-surround" nil t)
    (autoload #'evil-surround-region "evil-surround" nil t)
    (autoload #'evil-Surround-region "evil-surround" nil t)
<m> (define-key evil-operator-state-map "s" 'evil-surround-edit)
    (define-key evil-operator-state-map "S" 'evil-Surround-edit)
    (define-key evil-visual-state-map "s" 'evil-surround-region)
    (define-key evil-visual-state-map "S" 'evil-Surround-region)))
|

After:

(prog1 'evil-surround
  (add-to-list 'package-selected-packages 'evil-surround)
  (when (fboundp 'evil-surround-mode)
    (autoload #'evil-surround-edit "evil-surround" nil t)
    (autoload #'evil-Surround-edit "evil-surround" nil t)
    (autoload #'evil-surround-region "evil-surround" nil t)
    (autoload #'evil-Surround-region "evil-surround" nil t)
| (define-key evil-operator-state-map "s" 'evil-surround-edit)
  (define-key evil-operator-state-map "S" 'evil-Surround-edit)
  (define-key evil-visual-state-map   "s" 'evil-surround-region)
  (define-key evil-visual-state-map   "S" 'evil-Surround-region)))

Versions:

Emacs 28.1
Evil: 1.14.2
Evil-lion: 0.0.2

I have other packages installed as well, but these are the most relevant.

@teehemkay
Copy link

I'm observing the same behavior (using doom emacs latest version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants