-
-
Notifications
You must be signed in to change notification settings - Fork 389
Firefox Bookmarks
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.
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
withM-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:
- Right click on the bookmark toolbar in Firefox and add a new bookmark called
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.