Skip to content

vxe/emacs-geeknote

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geeknote.el

UNMAINTAINED

I’v switched to this thing: http://www.bear-writer.com Some additions to the to the excellent original by avendael

Overview

Installation

geeknote

This package assumes that you have the `geeknote` command in your `$PATH`. To obtain this command, please refer to the official geeknote

geeknote documentation

Sometimes, geeknote `HEAD` will have bugs. If so, commit `192a0c5` is tested to work properly. You can checkout that revision if needed.

emacs config

Because of the way `geeknote` works, it is expected that you have emacs running in server or daemon mode. Either of the two should work:

(server-start)

or

$ emacs --daemon

Usage

configuration

<It is recommended that the `geeknote` command is present in your `$PATH`. If so, no further configuration is needed. However, if you would prefer to reference `geeknote` from another location, you can do so by customizing the variable `geeknote-command`.

(setq geeknote-command "python ~/path/to/geeknote.py")    

This package expects `emacsclient` to be defined as your geeknote editor. You can set it up by running this command in your terminal:

geeknote settings --editor "emacsclient"

commands

Create

(geeknote-create) ;Create a new note.

create

You can specify a notebook in the title string using the `@` prefix, like so:

notetitle @notebookname

Similarly, you can specify tags using the `#` prefix:

“` notetitle #tag1, tag2 “`

This means you can create a note in your desired notebook and tag it in one shot:

“` notetitle @notebookname #tag1, tag2 “`

If the notebook and the tags are non-existent, they will be created.

Edit

(geeknote-edit) ; edit a note by title or index

edit

Notes can be written in markdown. Most markdown are correctly displayed in Evernote.

markdown

Find

(geeknote-find) ;  Use a keyword to search notes by title and content.

The index of the results can be used as an argument to another geeknote command.

find

Show

(geeknote-show) ;  Show a note in a non-editable Emacs buffer.

show

Remove

(geekonte-remove) ;Delete a note.

remove

Move

(geeknote-move) ;Move a note to a different notebook.

move

Buffer Lists

(geeknote-notebook-list) ; Show an interactive list of notebooks (top 100).
(geeknote-tag-list) ; Show an interactive list of tags (top 100).

move

In the buffers, clicking or pressing `enter` will trigger a find/search with that tag or with that notebook. Also there is some key navigation bound to the `geeknote-mode`

"q" kill-this-buffer
"j" next-line
"k" previous-line

Indexes

Geeknote’s indexes still work in this package. For example, you can search for a note beforehand and use the note’s index as an argument to `geeknote-edit`

“`

1: A note 2: The note you like to edit 3: Some other note

(geeknote-edit 2) “`

This also applies when a command is called interactively.

Keybindings

This package does not define any keybindings at the moment. Feel free to define your own keybindings for each command, like so:

(global-set-key (kbd "C-c g c") 'geeknote-create)
(global-set-key (kbd "C-c g e") 'geeknote-edit)
(global-set-key (kbd "C-c g f") 'geeknote-find)
(global-set-key (kbd "C-c g s") 'geeknote-show)
(global-set-key (kbd "C-c g r") 'geeknote-remove)
(global-set-key (kbd "C-c g m") 'geeknote-move)

Alternatives/Inspiration

You can check out evernote-mode, an Emacs package that integrates Evernote with org-mode. Sublime Text also has an excellent Evernote plugin.

About

Use Evernote in Emacs through geeknote

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Emacs Lisp 100.0%