all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Yotam Avital'" <yotama9@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Starting buffer configuration
Date: Sat, 31 Dec 2011 13:32:55 -0800	[thread overview]
Message-ID: <E057DD47979A44BFBBB5A528EE3EDD66@us.oracle.com> (raw)
In-Reply-To: <CAAShNttWTR7YAXTsfmL1W1M2A7pth6OAZFKVevTd3Ko63qr32Q@mail.gmail.com>

> I'm using emacs for several projects. I find the bookmark
> feature very useful. How can I set emacs launch in my
> bookmark page (or any other page for that matter)?

Put this at the end of your init file (~/.emacs):

(require 'bookmark)
(call-interactively 'bookmark-bmenu-list)

Or if you use Bookmark+, change the first line to (require 'bookmark+).  (The
Bookmark+ files need to be in your `load-path', for that.  Bookmark+ is here:
http://www.emacswiki.org/cgi-bin/wiki/BookmarkPlus.)

The reason you need to use `call-interactively' and not just
`(bookmark-bmenu-list)' is that `bookmark-bmenu-list' does not show the buffer
unless it is called interactively.  It includes this code:

(if (called-interactively-p 'interactive)
     (switch-to-buffer buf) ; Show it
  (set-buffer buf))) ; Just create it, without showing it.

(`bookmark-bmenu-list' is the command you use when you hit `C-x r l' to show the
bookmark list.)





  reply	other threads:[~2011-12-31 21:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-31 10:10 Starting buffer configuration Yotam Avital
2011-12-31 21:32 ` Drew Adams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-12-31 22:01 Silvio Levy
2011-12-31 22:23 ` Drew Adams
2011-12-31 22:55 Silvio Levy
2011-12-31 23:10 ` Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E057DD47979A44BFBBB5A528EE3EDD66@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yotama9@gmail.com \
    /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.
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.