From 000f18fb5d797a48160f1bb1111cb899b354a8d7 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Thu, 1 Sep 2016 14:52:13 +0200 Subject: [PATCH] org-catch-invisible-edits smart quote from documentation: Make point visible, and do insertion/deletion if it is adjacent to visible text and the change feels predictable. Never delete a previously invisible character or add in the middle or right after an invisible region. Basically, this allows insertion and backward-delete right before ellipses. --- bba.org | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/bba.org b/bba.org index 8c4653b6..5a7f4e5f 100644 --- a/bba.org +++ b/bba.org @@ -991,18 +991,19 @@ This is helpful in training sessions. #+BEGIN_SRC emacs-lisp - (setq org-link-abbrev-alist '( - ("bing" . "http://www.bing.com/search?q=%sform=OSDSRC") - ("cpan" . "http://search.cpan.org/search?query=%s&mode=all") - ("google" . "http://www.google.com/search?q=") - ("gmap" . "http://maps.google.com/maps?q=%s") - ("omap" . "http://nominatim.openstreetmap.org/search?q=%s&polygon=1") - ("bmap" . "http://www.bing.com/maps/default.aspx?q=%s&mkt=en&FORM=HDRSC4") - ("wiki" . "http://en.wikipedia.org/wiki/") - ("rfc" . "http://tools.ietf.org/rfc/rfc%s.txt") - ("ads" . "http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=%s&db_key=AST") - )) - ;; example: [[bmap:space needle]] + (setq org-link-abbrev-alist '( + ("bing" . "http://www.bing.com/search?q=%sform=OSDSRC") + ("cpan" . "http://search.cpan.org/search?query=%s&mode=all") + ("google" . "http://www.google.com/search?q=") + ("gmap" . "http://maps.google.com/maps?q=%s") + ("omap" . "http://nominatim.openstreetmap.org/search?q=%s&polygon=1") + ("bmap" . "http://www.bing.com/maps/default.aspx?q=%s&mkt=en&FORM=HDRSC4") + ("wiki" . "http://en.wikipedia.org/wiki/") + ("rfc" . "http://tools.ietf.org/rfc/rfc%s.txt") + ("ads" . "http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=%s&db_key=AST") + ("vertica" . "https://my.vertica.com/docs/7.2.x/HTML/Content/Search/index.htm?q=%s") + )) + ;; example: [[bmap:space needle]] #+END_SRC @@ -1321,6 +1322,7 @@ html. #+BEGIN_SRC emacs-lisp (setq org-hide-emphasis-markers t) + (setq org-catch-invisible-edits 'smart) #+END_SRC * CFEngine -- 2.47.3