Questions tagged [skeleton]
The skeleton tag has no summary.
17 questions
0 votes
1 answer
65 views
How to insert a named subskeleton from another skeleton?
I have a main skeleton and a subskeleton, both defined with define-skeleton. I would like to insert the subskeleton from the main one, using its name. (define-skeleton my-subskeleton "My ...
2 votes
2 answers
393 views
Can there be two prefix arguments?
I am very confused by the definitions of define-skeleton and skeleton-proxy-new in skeleton.el in the emacs source (version 28.1). The command generated by the define-skeleton macro has the ...
1 vote
1 answer
205 views
Skeletons: non-interactive subskeletons?
§12 Skeleton Language lists, as an element of a skeleton input list, skeleton Subskeletons are inserted recursively, not once, but as often as the user enters something at the subskeletons ...
0 votes
1 answer
141 views
Is it possible to have expand abbreviations when calling a skeleton-read?
I have a large set of abbreviations I defined inside an abbrev-table. Take one of them: (define-abbrev-table 'latex-mode-abbrev-table '(("ff" "my abbreviation!" 0 nil))) If I run a predefined ...
0 votes
1 answer
161 views
How to control cursor position when using a function for inserting a skeleton
I am using the following function to make a new text file containing premade rows. The text file is named with a date and time tag, and stored in a /notes/ folder. (defun myfun-create-file-with-rows(...
0 votes
1 answer
171 views
How to disable skeleton-pair-insert-maybe?
I recently got a new Chromebook and installed Ubuntu via crouton. I then installed Emacs 23 and transferred my .emacs file to the new machine. However, a few of my key rebindings have been ...
1 vote
1 answer
236 views
Insert quote characters in define-skeleton
In the following skeleton definition, I like to have quote characters ", ` and ' in the generated skeleton code. For example, I like to have the effect of #+NAME:a-function-test #+BEGIN_SRC ...
6 votes
2 answers
622 views
Automatically closing #ifdef block when editing C code
When editing LaTeX code, the command latex-close-block inserts an \end{..} that matches the last unclosed \begin{..}. Very handy! Is there a similar command in c-mode that would close a pending #...