diff options
| author | Somelauw <Somelauw> | 2020-01-01 21:17:25 +0100 |
|---|---|---|
| committer | Somelauw <Somelauw> | 2020-01-01 21:17:25 +0100 |
| commit | 9d4be14118bf27094a30dbff349b815f098aacbf (patch) | |
| tree | e72cca57f991f54a1b134754965851776ab192ec | |
| parent | d0a42539ef3f6022db17876ca6f37f1fe58e345d (diff) | |
| parent | e126a5ecad70eeb542b102e266705ab66769aefc (diff) | |
Merge branch 'master' of https://github.com/Somelauw/evil-org-modev1.0.2
| -rw-r--r-- | doc/keythemes.org | 2 | ||||
| -rw-r--r-- | evil-org.el | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/keythemes.org b/doc/keythemes.org index 7bd755b..0fbea1c 100644 --- a/doc/keythemes.org +++ b/doc/keythemes.org @@ -44,7 +44,7 @@ | key | function | explanation | |-----+------------+-------------------------------------| | =<= | evil-org-< | Promote all headings in marked area | - | =>= | evil-org-< | Demote all headings in marked area | + | =>= | evil-org-> | Demote all headings in marked area | |-----+------------+-------------------------------------| Variable =evil-org-retain-visual-state-on-shift= controls whether the selection should be restored after promoting / indenting, which is helpful if you want to promote / indent multiple times. By default this variable is set to =nil=. diff --git a/evil-org.el b/evil-org.el index 6d5ccad..9bf7ff6 100644 --- a/evil-org.el +++ b/evil-org.el @@ -514,7 +514,7 @@ If a prefix argument is given, links are opened in incognito mode." (contents-end (org-element-property :contents-end element)) (post-affiliated (org-element-property :post-affiliated element)) (post-blank (org-element-property :post-blank element))) - (cond ((or (s-ends-with? "-block" (symbol-name type)) + (cond ((or (string-suffix-p "-block" (symbol-name type)) (memq type '(latex-environment))) ;; Special case on block types (thanks Nicolas Goaziou) (list (org-with-point-at post-affiliated (line-beginning-position 2)) |
