all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Icicles for filename insertion in buffer
@ 2016-01-28 19:10 B.V. Raghav
  2016-01-28 19:28 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: B.V. Raghav @ 2016-01-28 19:10 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Many a times I feel the need to insert the filename into the buffer.

Example:
1.  `(insert (file-name-nondirectory (buffer-file-name)))' when inserting
    doxygen file comment in a file.

    Though this need is fulfilled by substituting this code snippet for
    evaluation in yasnippet. I have a few other uses

2.  `(insert-file-name-relative-include-directories)' --- when
    completing a `# include' directive in a c/c++ programming.

3.  Taking notes, and referencing in org-mode.

    This requirement is more than fulfilled by C-C C-l (org-insert-link)

Is there a way to use the value selected by icicle (variable name?) and
then trim down prefix using the first match within the sequence of
include directories and appended with values returned by split-string of
$CPATH environment variable.

This should boost the confidence of a novice programmer like me.

Thanks,
r
-- 
(B.V. Raghav)




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

end of thread, other threads:[~2016-01-29  7:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 19:10 Icicles for filename insertion in buffer B.V. Raghav
2016-01-28 19:28 ` Drew Adams
2016-01-28 19:49   ` B.V. Raghav
2016-01-28 21:52     ` Drew Adams
2016-01-29  7:37       ` B.V. Raghav

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.