From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: get Elisp reference to info files (was: Re: How can I change the default loading buffer?)
Date: Wed, 05 Aug 2015 22:19:20 +0200 [thread overview]
Message-ID: <87zj25trnb.fsf_-_@nl106-137-147.student.uu.se> (raw)
In-Reply-To: 87mvy93cry.fsf@robertthorpeconsulting.com
Robert Thorpe <rt@robertthorpeconsulting.com> writes:
>> OK, so what is the method to find out (or rule of
>> thumb) what you shouldn't put directly into .emacs
>> but instead into `emacs-startup-hook'?
>
> Have a look at (info "(elisp)Startup Summary") and see
> if any of it applies to you. Check from the bottom of
> the list up.
OK!
In another thread, I asked how to automatically get
that kind of Elisp references to the info files.
I don't know if anyone replied to that, if so I missed
it, but here is a function that has proved to work in
the two cases I have tested it:
(defun Info-get-reference ()
(interactive)
(let*((field (car (last (split-string Info-current-file "/"))))
(topic Info-current-node)
(ref (format "(info \"(%s)%s\")" field topic) ))
(message "Killed: %s" ref)
(kill-new ref)) )
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-08-05 20:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-29 10:17 How can I change the default loading buffer? Navy Cheng
2015-07-29 13:54 ` kastian
2015-07-29 14:32 ` kastian
2015-07-29 17:31 ` Navy Cheng
2015-07-29 20:11 ` Robert Thorpe
2015-07-29 22:43 ` Emanuel Berg
2015-07-30 0:38 ` Robert Thorpe
2015-07-30 1:58 ` Emanuel Berg
2015-08-02 15:56 ` Robert Thorpe
2015-08-05 20:19 ` Emanuel Berg [this message]
[not found] ` <mailman.7859.1438806073.904.help-gnu-emacs@gnu.org>
2015-08-06 1:23 ` get Elisp reference to info files Ted Zlatanov
2015-08-07 22:41 ` Emanuel Berg
2015-08-07 23:06 ` John Mastro
2015-08-07 23:19 ` Emanuel Berg
2015-08-07 23:25 ` John Mastro
2015-08-08 17:37 ` Robert Thorpe
2015-08-09 1:24 ` Emanuel Berg
2015-08-09 2:05 ` Emanuel Berg
2015-08-09 2:23 ` John Mastro
2015-08-09 2:30 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zj25trnb.fsf_-_@nl106-137-147.student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).