summaryrefslogtreecommitdiffstats
path: root/local.el
blob: 678999e4bbbbeb48e516d53da4bc9b55e14020ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
;;; local.el --- local customization

;; Copyright (C) 2013  

;; Author:  <ravi@nero.lan>
;; Keywords: 

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; Local customization

;;; Code:

(defun ravi/normal-license-header ()
  (let ((ret ""))
        (setq ret (concat ret "Copyright (C) " (format-time-string "%Y  ")
                          "Ravi R Kiran <aine.marina@gmail.com>\n\n"
                          "License: GNU General Public License (version 3)\n"))))

(ravi/normal-license-header)

(defalias 'ravi-license-header 'ravi/normal-license-header)

;; Org-capture set-up
(defun ravi/setup-org-capture ()
  (add-to-list 'org-capture-templates
               '("n"                ;`org-capture' binding + n
                 "Note"
                 entry
                 (file "") ;empty string defaults to `org-default-notes-file'
                 "\n* %?\n  Context:\n    %i\n  Entered on %U")))

(provide 'local)
;;; local.el ends here