somelauw / evil-org Goto Github PK
View Code? Open in Web Editor NEWSupplemental evil-mode key-bindings to Emacs org-mode.
Supplemental evil-mode key-bindings to Emacs org-mode.
Parentheses (round brackets) are currently bound to org-forward-sentence and org-backward-sentence, which work well in tables, but are not so great on sentences.
(setq evil-move-beyond-eol nil) ; I think this is the default
'$' denotes end of line, but is not part of text. This is done to make clear that the first line ends in a space, but the second line doesn't.
First sentence on which the point starts. $
Second sentence, which can be reached by pressing ) twice.$
Third line, which can't be reached by pressing ) again.$
Parentheses should fall back on evil-forward/backward-sentence-begin when not in table.
After just updating I got the following compilation errors, and I thought it might be helpful to report them in case they somehow only show up on my end.
Cheers :)
evil-org.el:120:17:Warning: reference to free variable
‘evil-surround-operator-alist’
evil-org.el:120:17:Warning: assignment to free variable
‘evil-surround-operator-alist’
In evil-org-return:
evil-org.el:291:32:Warning: ‘org-return-indent’ is an obsolete function (as of
Org 9.4); use ‘org-return’ with INDENT set to t instead.
In evil-org-generic-open-links:
evil-org.el:465:32:Warning: reference to free variable
‘org-link-search-failed’
In end of data:
evil-org.el:820:1:Warning: the following functions are not known to be
defined: obsolete, evil-org-org-insert-heading-respect-content-below,
evil-org-org-insert-todo-heading-respect-content-below,
evil-org-org-insert-todo-heading-below,
evil-org-org-insert-todo-subheading-below,
evil-org-org-insert-heading-below, evil-org-org-insert-subheading-below
Evil automatically tries to use the major mode definition of a paragraph, but the result of ap or ip often leads to unexpected results in org-mode.
for example try pressing "vap" in the following situation where '|' is point.
|first
* heading
here
``
When evil-org is enabled in a buffer, evil-surround's surround-delete stops working.
Without evil-org, the shortcut ds (delete surround) deletes the specified delimiters:
(| is cursor)
-- {somet|hing}
ds}
something
When evil-org is enabled, ds does not behaves as expected.
It apperrs that s enters evil-surround-edit with a parameter other then 'delete . It wants to add a surround and expects a movement to know which region to surround.
one { t|wo } three
next paragraph
ds} (understands } as paragraph movement )
} (now it with {} up to the next paragraph
one { t{wo } three
}
next paragraph
init.el :
(package-initialize)
(require 'evil)
(require 'evil-org)
(require 'evil-surround)
(evil-mode 1)
(global-evil-surround-mode 1)
Package versions (installed from melpa):
Currently, they work on headlines (starting with *), but not on lists.
For example
- item 1
- item 2
- item 3
For example if in the following case | denotes the pointer location:
|hello
Pressing "x" in normal mode should store the 'h' in kill-ring:
|ello
Now pressing "p" should give:
e|hllo
But that doesn't work, because the 'h' wasn't stored in kill-ring.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.