-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Reproduction
- Enable indentation in org_mode (default) or set
org_indent_mode
toindent
- Create at least two levels of headlines and add a src block (see example below)
- Invoke the FeMaco binding on the src block
- Update the src block content indentation (like
ggVG=
) - Use the
:wq
command to write and replace prev src block
Example
#+title: Org FeMaco Indentation Repro
* Heading 1
** Heading 2
#+begin_src fennel
(let [x 5]
(+ x 2)) ;; Purposefully incorrectly indented
#+end_src
Expected
The indentation level after saving the FeMaco buffer should respect the original org-mode src block indentation
* Heading 1
** Heading 2
#+begin_src fennel
(let [x 5]
(+ x 2)) ;; Now correctly indented
#+end_src
Actual
The indentation level does not reflect the org-mode src block indentation:
* Heading 1
** Heading 2
#+begin_src fennel
(let [x 5]
(+ x 2)) ;; Now worse than before :(
#+end_src
Workarounds
- For now I've just set
org_indent_mode
tonoindent
Metadata
Metadata
Assignees
Labels
No labels