From 4cd1b49f0648827698afc56af4a0c80eb9c81e7b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 11 Feb 2017 12:33:50 +0100 Subject: emacs: added org-capture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- emacs/init.html | 71 ++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 55 insertions(+), 16 deletions(-) (limited to 'emacs/init.html') diff --git a/emacs/init.html b/emacs/init.html index e751911..894a932 100644 --- a/emacs/init.html +++ b/emacs/init.html @@ -4,7 +4,7 @@ mssola's GNU Emacs configuration - + @@ -174,11 +174,12 @@ for the JavaScript code in this tag.
  • General settings
  • Publishing
  • Agenda
  • -
  • Other
  • -
  • TODO shortcut for making an org link, and transforming a link into a proper org link
  • -
  • TODO make it work with evil
  • -
  • TODO Proper keybindings for quick access.
  • -
  • TODO shortcuts for stuff like: create something urgent for today
  • +
  • Capture
  • +
  • Other
  • +
  • TODO shortcut for making an org link, and transforming a link into a proper org link
  • +
  • TODO make it work with evil
  • +
  • TODO Proper keybindings for quick access.
  • +
  • TODO shortcuts for stuff like: create something urgent for today
  • IRC
  • @@ -636,7 +637,7 @@ Global key binding.
    -
    (global-set-key (kbd "C-c c") 'calendar)
    +
    (global-set-key (kbd "M-c") 'calendar)
     
    @@ -2072,13 +2073,51 @@ The prefix for the different kinds of types being used. (todo . "%c:%t%s"))) + +

    +Set up a key binding for org-agenda. +

    + +
    + +
    (global-set-key (kbd "C-c a") 'org-agenda)
    +
    +
    -

    Other

    +

    Capture

    +Set the default notes file and the key binding. +

    + +
    + +
    (setq org-default-notes-file (concat org-directory "/notes.org"))
    +(define-key global-map "\C-cc" 'org-capture)
    +
    +
    + +

    +And finally set org-capture-templates. +

    + +
    + +
    (setq org-capture-templates
    +      `(("t" "todo" entry (file "") "* TODO %?\n%U\n")
    +        ("i" "idea" entry (file "") "* %? :IDEA:\n%U\n%a\n")))
    +
    +
    +
    +
    + + @@ -2721,7 +2760,7 @@ along with this program. If not, see < -- cgit v1.2.3