Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.47 KB | None | 0 0
  1.   (use-package org
  2.     :ensure t
  3.     ;:pin org
  4.     :config
  5.     '(org-directory "~/sync/orgfiles")
  6.     '(org-default-notes-file (concat org-directory "~/sync/orgfiles/notes.org.gpg"))
  7.     '(org-export-html-postamble nil)
  8.     '(org-hide-leading-stars t)
  9.     '(org-startup-indented t)
  10.     '(org-journal-dir "~/sync/orgfiles")
  11.     '(org-agenda-files (list "~/sync/orgfiles/personal_cal.org.gpg" "~/sync/orgfiles/work_cal.org.gpg"))
  12.     '(org-display-inline-images t)
  13.     '(org-redisplay-inline-images t)
  14.     '(org-startup-with-inline-images "inlineimages")
  15.     '(set-default 'preview-scale-function 2.0)
  16.     (setq org-todo-keywords
  17.           '((sequence "TODO(t)" "PENDING(p!)" "WAIT(w@)" "VERIFY(v)" "|" "DONE(d!)" "CANCELED(c@)")
  18.             (sequence "REPORT(r@)" "BUG(b@)" "KNOWNCAUSE(k@)" "|" "FIXED(f!)")))
  19.     (add-hook 'org-mode-hook (lambda ()
  20.                                (setq truncate-lines nil)
  21.                                (visual-line-mode)
  22.                                (org-ident-mode)))
  23.     ;; (global-set-key (kbd "C-c l")
  24.     ;;               (lambda () (interactive) (find-file "~/sync/orgfiles/life.org.gpg")))
  25.     (add-hook 'org-mode-hook #'toggle-word-wrap)
  26.     (add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images)
  27.     (defun do-org-show-all-inline-images ()
  28.       (interactive)
  29.       (org-display-inline-images t t))
  30.     (global-set-key (kbd "C-c C-x C v")
  31.                     'do-org-show-all-inline-images)
  32.     (require 'ox-reveal))
  33.  
  34.   (use-package org-gcal
  35.                :init (load-library "~/.gcal.el.gpg")
  36.                :config (setq org-gcal-file-alist '(("maximoiann@gmail.com" .  "~/sync/orgfiles/personal_cal.org")
  37.                                                    ("ian@crowd.br.com" . "~/sync/orgfiles/work_cal.org"))))
  38.  
  39.   (use-package org-bullets
  40.     :ensure t
  41.     :config
  42.     (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
  43.  
  44.   (setq org-reveal-root "file:///home/ianffcs/reveal.js")
  45.  
  46.   (setq org-file-apps
  47.     (append '(
  48.                ("\\.pdf\\'" . "evince %s")
  49.                ("\\.x?html?\\'" . "/usr/bin/chromium-browser %s")) org-file-apps))
  50.  
  51.   (require 'org-crypt)
  52.   (org-crypt-use-before-save-magic)
  53.   (setq org-tags-exclude-from-inheritance (quote ("crypt")))
  54.   ;; GPG key to use for encryption
  55.   ;; Either the Key ID or set to nil to use symmetric encryption.
  56.   (setq org-crypt-key "9CD4DA20")
  57.  
  58.   (use-package org-web-tools
  59.     :ensure t)
  60.  
  61.   (use-package org-journal
  62.     :ensure t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement