all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* autoinsert
@ 2018-06-07 17:16 Joseph Vidal-Rosset
  2018-06-07 21:06 ` autoinsert Nick Dokos
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Vidal-Rosset @ 2018-06-07 17:16 UTC (permalink / raw)
  To: emacs-orgmode list

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

Hello,

To get an .org file with my .bib links I'm using this code in my user.el
(i.e. init.el):

 #+BEGIN_SRC 
 (require 'autoinsert)
(push '(org-mode . "/home/joseph/MEGA/org/orgskeleton.org") auto-insert-alist)
(add-hook 'find-file-hook 'auto-insert)
 #+END_SRC


in this orgskeleton.org there is only these links:

[[bibliography:/home/joseph/MEGA/org/reforg.bib]]
[[bibliographystyle:apalike]] 

Now, I  would be happy  to define  a beamerskeleton.org into  a beamer
directory, a article-skeleton.org ino a papers directory and so on, 
in  order to  get default  files for  beamer presentations, papers,  and so
on.  Reading autoinsert.el,  I guess  that it  is possible,  but I  am
really to  bad in lisp to  get the right code  to autoinsert different
skeletons when I open a new file in different directories. 

I need help, and in advance, many thanks. 

Best wishes, 

-- 
Jo.

[-- Attachment #2.1: Type: text/html, Size: 1060 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.704.1041251691.19936.help-gnu-emacs@gnu.org>]
* Autoinsert
@ 2002-12-30 12:32 Roberto Huelga
  0 siblings, 0 replies; 9+ messages in thread
From: Roberto Huelga @ 2002-12-30 12:32 UTC (permalink / raw)


	Hello to every body.

	I'm starting with the skeletons and autoinsert. Skeletons and abbrevs 
work fine, but the autoinsert doesn't expand the tag.
	In my .emacs file I have the following lines about autoinsert:

(require 'autoinsert)
(add-hook 'find-file-hook 'auto-insert)
(define-auto-insert "\\.\\(H\\|hh\\|hxx\\|hpp\\)\\'" "cxx-header.hh")

	And the cxx-header.hh file is like this:

#ifndef __%B_%E__
#define __%B_%E__

class %@
{

};

#endif

	And nothing is expanded. Someone can help me? (I don't want to use 
skeletons here)


	A lot of Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-06-09  9:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-07 17:16 autoinsert Joseph Vidal-Rosset
2018-06-07 21:06 ` autoinsert Nick Dokos
2018-06-08  7:12   ` autoinsert Joseph Vidal-Rosset
2018-06-08  7:32     ` autoinsert Joseph Vidal-Rosset
2018-06-08  7:38       ` autoinsert Joseph Vidal-Rosset
2018-06-08  8:37         ` autoinsert Joseph Vidal-Rosset
2018-06-09  9:57           ` autoinsert Eric S Fraga
     [not found] <mailman.704.1041251691.19936.help-gnu-emacs@gnu.org>
2002-12-30 12:50 ` Autoinsert Chmouel Boudjnah
  -- strict thread matches above, loose matches on Subject: below --
2002-12-30 12:32 Autoinsert Roberto Huelga

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.