I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. ;; Init
  2. ;; :PROPERTIES:
  3. ;; :header-args: :tangle init.el
  4. ;; :END:
  5. ;; Here's a complete list of all of the options configurable for each host, and their default values. All variables prefixed with ~dotfiles/~. If you need to make configurations to another variable, consider creating a new option.
  6. (defvar dotfiles/font
  7. "Fira Code"
  8. "Unified system font family.")
  9. (defvar dotfiles/font-size
  10. 96
  11. "Unified system font size.")
  12. (defvar dotfiles/browser
  13. (getenv "BROWSER")
  14. "Default system web browser.")
  15. (defvar dotfiles/language
  16. (getenv "LANG")
  17. "Default system dictionary language.")
  18. (defconst dotfiles/modules-p
  19. '(core
  20. editor
  21. ;; email
  22. desktop
  23. writing
  24. website
  25. capture
  26. projects
  27. interface)
  28. "All of the available modules.")
  29. (defvar dotfiles/modules
  30. dotfiles/modules-p
  31. "All of the enabled modules.")
  32. (defvar dotfiles/home
  33. user-emacs-directory
  34. "Original value of `user-emacs-directory'.")
  35. (defvar dotfiles/cache
  36. (expand-file-name "~/.cache/emacs")
  37. "Redirection target of `user-emacs-directory'.")
  38. (defvar dotfiles/idle
  39. 0.0
  40. "Delay time before offering suggestions and completions.")
  41. (defvar dotfiles/leader-key
  42. "SPC"
  43. "All powerful leader key.")
  44. (defvar dotfiles/leader-key-global
  45. (concat "C-" dotfiles/leader-key)
  46. "Global prefix for the leader key.")
  47. (defvar dotfiles/projects
  48. (expand-file-name "~/.local/source/")
  49. "Location of source code projects.")
  50. (defvar dotfiles/passwords
  51. (expand-file-name "~/.password-store/")
  52. "Location of local password store.")
  53. (defvar dotfiles/public-key
  54. "37AB1CB72B741E478CA026D43025DCBD46F81C0F"
  55. "GPG key to encrypt org files for.")
  56. ;; Hosts
  57. ;; Each host machines configuration is loaded immediately after the options are declared, before any configuration is applied. This allows system to system control while remaining immutable. Override any of the available options configurations in a host file. Here's some examples to get started:
  58. ;; + [[file:hosts/localhost.org][Termux]]
  59. ;; + [[file:hosts/raspberry.org][Raspberry]]
  60. ;; + [[file:hosts/acernitro.org][Acernitro]]
  61. ;; + [[file:hosts/virtualbox.org][Virtualbox]]
  62. ;; Begin the process by loading any host specific overrides. The host configuration tangles, and loads (if it exist) using the systems name.
  63. (let ((host-file (concat dotfiles/home "/hosts/" system-name ".org")))
  64. (when (file-exists-p host-file)
  65. (org-babel-load-file host-file)))
  66. ;; Modules
  67. ;; Breaking down the project into logical units or chapters to keep the code more maintainable and organized. This is also a fundamental requirement to achieve the goal of modularity. Here are all of the available modules, also listed in the variable ~dotfiles/modules-p~.
  68. ;; + [[file:modules/core.org][Core]]
  69. ;; + [[file:modules/editor.org][Editor]]
  70. ;; + [[file:modules/email.org][Email]]
  71. ;; + [[file:modules/desktop.org][Desktop]]
  72. ;; + [[file:modules/writing.org][Writing]]
  73. ;; + [[file:modules/website.org][Website]]
  74. ;; + [[file:modules/projects.org][Projects]]
  75. ;; + [[file:modules/interface.org][Interface]]
  76. ;; By default all of the modules will load, override the variable ~dotfiles/modules~ in a host configuration to override this.
  77. (dolist (m dotfiles/modules)
  78. (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".org")))
  79. (when (file-exists-p mod-file)
  80. (org-babel-load-file mod-file))))