packages.el 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. ;;; packages.el --- chicken-dotfiles layer packages file for Spacemacs.
  2. ;;
  3. ;; Copyright (c) 2012-2017 Sylvain Benner & Contributors
  4. ;;
  5. ;; Author: Eiyeron <eiyeron@Ducktop>
  6. ;; URL: https://github.com/syl20bnr/spacemacs
  7. ;;
  8. ;; This file is not part of GNU Emacs.
  9. ;;
  10. ;;; License: GPLv3
  11. ;;; Commentary:
  12. ;; See the Spacemacs documentation and FAQs for instructions on how to implement
  13. ;; a new layer:
  14. ;;
  15. ;; SPC h SPC layers RET
  16. ;;
  17. ;;
  18. ;; Briefly, each package to be installed or configured by this layer should be
  19. ;; added to `chicken-dotfiles-packages'. Then, for each package PACKAGE:
  20. ;;
  21. ;; - If PACKAGE is not referenced by any other Spacemacs layer, define a
  22. ;; function `chicken-dotfiles/init-PACKAGE' to load and initialize the package.
  23. ;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so
  24. ;; define the functions `chicken-dotfiles/pre-init-PACKAGE' and/or
  25. ;; `chicken-dotfiles/post-init-PACKAGE' to customize the package as it is loaded.
  26. ;;; Code:
  27. (defconst chicken-dotfiles-packages
  28. '(
  29. org
  30. org-agenda
  31. org-bullets
  32. )
  33. "The list of Lisp packages required by the chicken-dotfiles layer.
  34. Each entry is either:
  35. 1. A symbol, which is interpreted as a package to be installed, or
  36. 2. A list of the form (PACKAGE KEYS...), where PACKAGE is the
  37. name of the package to be installed or loaded, and KEYS are
  38. any number of keyword-value-pairs.
  39. The following keys are accepted:
  40. - :excluded (t or nil): Prevent the package from being loaded
  41. if value is non-nil
  42. - :location: Specify a custom installation location.
  43. The following values are legal:
  44. - The symbol `elpa' (default) means PACKAGE will be
  45. installed using the Emacs package manager.
  46. - The symbol `local' directs Spacemacs to load the file at
  47. `./local/PACKAGE/PACKAGE.el'
  48. - A list beginning with the symbol `recipe' is a melpa
  49. recipe. See: https://github.com/milkypostman/melpa#recipe-format"
  50. )
  51. (defun chicken-dotfiles/post-init-org-bullets()
  52. (use-package org-bullets
  53. :defer t
  54. :init
  55. (setq org-bullets-bullet-list '("◉" "○" "⬡" "⬢" "■" "□" "◈" "◇"))
  56. )
  57. )
  58. (defun chicken-dotfiles/post-init-org-agenda()
  59. (use-package org-agenda
  60. :defer t
  61. :init
  62. (setq org-agenda-to-appt t)
  63. (setq org-agenda-include-diary t)
  64. (setq org-agenda-files (list
  65. "~/Notes/Agenda/birthdays.org"
  66. ;; GTD
  67. "~/Notes/inbox.org" "~/Notes/gtd.org" "~/Notes/tickler.org"))
  68. )
  69. )
  70. (defun chicken-dotfiles/post-init-org()
  71. (use-package org
  72. :defer t
  73. :init
  74. (setq org-cycle-level-faces nil)
  75. (setq org-modules
  76. '(org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-mouse org-rmail org-w3m org-drill))
  77. (setq org-todo-keywords '((sequence "TODO" "WAITING" "IN PROGRESS" "|" "DONE" "CANCELLED")))
  78. ; GTD inspired by https://emacs.cafe/emacs/orgmode/gtd/2017/06/30/orgmode-gtd.html
  79. (setq org-capture-templates '(("t" "Todo [inbox]" entry
  80. (file+headline "~/Notes/inbox.org" "Tasks")
  81. "* TODO %i%?")
  82. ("T" "Tickler" entry
  83. (file+headline "~/Notes/tickler.org" "Tickler")
  84. "* %i%? \n %U")
  85. ;; Media
  86. ("A" "Artist" entry
  87. (file+headline "~/Notes/inbox.org" "Music")
  88. "* TODO %i%? \n %U")
  89. ("S" "Series" entry
  90. (file+headline "~/Notes/inbox.org" "Series")
  91. "* TODO %i%? \n %U"))
  92. )
  93. (setq org-directory "~/Notes")
  94. (setq org-default-notes-file "~/Notes/inbox.org" )
  95. (setq org-refile-targets '(("~/Notes/gtd.org" :maxlevel . 3)
  96. ("~/Notes/backlog.org" :level . 2)
  97. ("~/Notes/tickler.org" :maxlevel . 2)))
  98. )
  99. )
  100. ;;; packages.el ends here