PROJECTS NOTES HOME

Denote features

Why I use Denote.

1 Some useful features not to forget

  • Rename the files(denote-rename). Take .pdf or any other file, use denote-rename to rename it denote style (with date and tags), be able to search for those files later, they are denote files now
  • remove/add keywords (denote-keywords-add/remove)
  • quickly create notes from anywhere in Emacs (C-c n n)
  • modify the font matter to your liking
  • have a list of "backlinks" that link to your current note (C-c n b). Review them to see where else you mention the current file.
  • while in dired, use m% to search/folder for notes with regular expressions. Here are some possible commands:
U - unmark all selections in dired

%m

t - toggle the mark
k - kill unecessary
g - close this
v - view file quick
q - quit

2 Silos

Denote allows me to generate blog files quick and easy. They are all in the same structure, do not require database. I can link between them.

Default denote dir is Documents/org, but my denote dir is ~/GIT/notes. This is where ALL my notes used to lie. When I decided to move the programming/work related notes to a different directory, I had to make a "silo" in denote terms - as described in https://protesilaos.com/emacs/denote.

Instead of denote looking at my default denote dir when I create and manage denote files, I had to specify another directory. I could do that by simply creating a .dir-locals.el file in my new directory and add such content to it:

;;; Directory Local Variables.  For more information evaluate:
;;;
;;;     (info "(emacs) Directory Variables")

((nil . ((denote-directory . default-directory))))

So now when denote is launched from THAT particular folder in which there is this dir-locals.el file, it will know that It has to create notes in that directory and not the default directory which I have specified in my init file, which contains all my personal files.