From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: Re: function for inserting a block Date: Wed, 08 Nov 2017 15:34:11 +0100 Message-ID: <878tfg7sbg.fsf@bzg.fr> References: <877exghblx.fsf@ericabrahamsen.net> <878tgmwwsa.fsf@ericabrahamsen.net> <87po9q2e8k.fsf@nicolasgoaziou.fr> <87tvyyvpst.fsf@ericabrahamsen.net> <87fuaiz069.fsf@nicolasgoaziou.fr> <87lgk9eo4d.fsf@ericabrahamsen.net> <87fuahxxvs.fsf@nicolasgoaziou.fr> <87r2u1cuwj.fsf@ericabrahamsen.net> <87infdctzq.fsf@ericabrahamsen.net> <87k1zsbizs.fsf@ericabrahamsen.net> <87k1zp4rxj.fsf@ericabrahamsen.net> <871slx4j6p.fsf@ericabrahamsen.net> <87376btslq.fsf@nicolasgoaziou.fr> <87vaj7oyxb.fsf@ericabrahamsen.net> <871sl9ow44.fsf@gnu.org> <87fu9pgfkj.fsf@nicolasgoaziou.fr> <87tvy5nf0q.fsf@gnu.org> <87bmkchp1x.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCRR0-0008UI-Sk for emacs-orgmode@gnu.org; Wed, 08 Nov 2017 09:34:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCRQw-0004Kf-3R for emacs-orgmode@gnu.org; Wed, 08 Nov 2017 09:34:30 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Eric Abrahamsen , emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: > Bastien writes: > >> is there a simple mechanism in Emacs core to restore the same >> functionnality? > > Of course, it is called Abbrev mode: (info "(emacs)Abbrev > Concepts"). Abbrev only expands on words constituents, so " You may also use (info "(autotype)Using Skeletons") for more advanced > uses. I see. So combining the two, we would have something like this: (define-skeleton org-skeleton-src-block "" nil > "#+begin_src" \n _ \n "#+end_src") (define-abbrev org-mode-abbrev-table "