+
Skip to content

Issue when working with (setq org-hide-emphasis-markers t) #13

Open
@failable

Description

@failable

Hi, thanks for the very convenient package. I find an issue when using it in org-mode. I have (setq org-hide-emphasis-markers t) in my config.

Sample settings:

(use-package mwim
  :bind (("C-a" . mwim-beginning-of-line-or-code)
         ("C-e" . mwim-end-of-line-or-code)))

(setq org-hide-emphasis-markers t)

Reproduce steps:

  1. Create an empty org-mode buffer, and press RET to create some new lines.
  2. Move the cursor to any previous line to ensure there are at least one line below.
  3. At the end of current line, enter ~some text*~ (* denote cursor. Note that the markers are hidden at this moment.
  4. Call mwim-end-of-line-or-code or other variants to move to end of line.

Now, the cursor is moved to beginning of next line.

I do this because this is my workflow when typing and use smartparens to auto insert ~~ and type texts then move out of the markup area to continue typing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载