Skip to content

emacs-helm/helm-firefox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

MELPA MELPA Stable

helm-firefox

Emacs helm interface for firefox bookmarks.

Dependencies

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.

Prerequisite

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.

Install

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)

Setup

On GNU Linux probably you can keep default setting, otherwise you may have to setup helm-firefox-default-directory to some other value.

Create a bookmarklet to jump to helm-firefox from firefox (facultative)

  1. 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.
  2. Add the ffbookmarks script in a directory of your PATH.

  3. Install firefox-protocol

    M-x firefox-protocol-installer-install RET ffbookmarks 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"