Skip to content
Caleb Chase edited this page May 4, 2020 · 2 revisions

You will have to set Firefox to export bookmarks to the file book-marks.html.

In Firefox 3.0 and above, open about:config and change the bookmark exporting preference to true. That is, change:

user_pref("browser.bookmarks.autoExportHTML", false);

to

user_pref("browser.bookmarks.autoExportHTML", true);

Now you can use the helm-firefox-bookmarks command.

Seeing Firefox bookmarks in Emacs

When you are in Firefox, things are a little more complicated. You will need the wmctrl program and a script named ffbookmarks.

Create a Bash script:

#!/bin/bash

wmctrl -xa emacs
emacsclient -e "(progn (helm-firefox-bookmarks) nil)" > /dev/null
wmctrl -xa firefox
exit 0

Put this script somewhere in your PATH and make it executable with:

chmod +x ffbookmarks

Firefox is not aware of this new protocol; you will have to instruct it. See Firefox documentation or use the firefox-protocol package.

If using the firefox-protocol package:

  • Install ffbookmarks with M-x firefox-protocol-installer-install
  • Install a bookmarklet in Firefox
    • Right click on the bookmark toolbar in Firefox and add a new bookmark called ffbookmarks.
    • Add this instead of a url:
javascript:location.href='ffbookmarks://localhost'

Now clicking on ffbookmarks will bring you to Emacs and allow you to browse your bookmarks with Helm.

NOTE: Emacs server needs to be started in the running Emacs; see Emacs documentation.

Clone this wiki locally