Emacs helm interface for firefox bookmarks.
You have first to install helm in order to make this working. If you install from MELPA you don't have to care of this.
You will have to set firefox to import bookmarks in his html file bookmarks.html.
(only for firefox versions >=3)
To achieve that, open about:config
in firefox url toolbar and go to this line:
user_pref("browser.bookmarks.autoExportHTML", false);
Double click on this line to enable its value to true
, you should have now:
user_pref("browser.bookmarks.autoExportHTML", true);
NOTE: This is also working in the same way for mozilla aka seamonkey.
The easiest way is to install from MELPA.
Otherwise put this file in load-path
compile it and add in your init file:
(autoload 'helm-firefox-bookmarks "helm-firefox" nil t)
On GNU Linux probably you can keep default setting, otherwise you may have to
setup helm-firefox-default-directory
to some other value.
-
Create the bookmarklet in firefox:
- Add a bookmark named
ffbookmarks
in your personal bar in firefox. - Right click on it and add
javascript:location.href='ffbookmarks://localhost'
as url.
- Add a bookmark named
-
Add the
ffbookmarks
script in a directory of yourPATH
. -
Install firefox-protocol
M-x
firefox-protocol-installer-install
RETffbookmarks
RET/path/to/ffbookmarks
Of course as the script use emacsclient you need an emacs session with a server running along with firefox to make this working.
Also to come back to firefox when you select a bookmark or abort with C-g this script is using wmctrl program, so you should install it. By default the script is assuming the firefox executable is "firefox", to modify this you can add to your env vars in .profile or .bashrc:
export FIREFOXEXE="name of your firefox executable"