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.

105 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. ;; Options
  2. ;; 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.
  3. (defvar dotfiles/font
  4. "Fira Code"
  5. "Unified system font family.")
  6. (defvar dotfiles/font-size
  7. 96
  8. "Unified system font size.")
  9. (defvar dotfiles/browser
  10. (getenv "BROWSER")
  11. "Default system web browser.")
  12. (defvar dotfiles/language
  13. (getenv "LANG")
  14. "Default system dictionary language.")
  15. (defconst dotfiles/modules-p
  16. '(core
  17. editor
  18. ;; email
  19. desktop
  20. writing
  21. website
  22. capture
  23. projects
  24. interface)
  25. "All of the available modules.")
  26. (defvar dotfiles/modules
  27. dotfiles/modules-p
  28. "All of the enabled modules.")
  29. (defvar dotfiles/home
  30. user-emacs-directory
  31. "Original value of `user-emacs-directory'.")
  32. (defvar dotfiles/cache
  33. (expand-file-name "~/.cache/emacs")
  34. "Redirection target of `user-emacs-directory'.")
  35. (defvar dotfiles/idle
  36. 0.0
  37. "Delay time before offering suggestions and completions.")
  38. (defvar dotfiles/leader-key
  39. "SPC"
  40. "All powerful leader key.")
  41. (defvar dotfiles/leader-key-global
  42. (concat "C-" dotfiles/leader-key)
  43. "Global prefix for the leader key.")
  44. (defvar dotfiles/projects
  45. (expand-file-name "~/.local/source/")
  46. "Location of source code projects.")
  47. (defvar dotfiles/passwords
  48. (expand-file-name "~/.password-store/")
  49. "Location of local password store.")
  50. (defvar dotfiles/public-key
  51. "37AB1CB72B741E478CA026D43025DCBD46F81C0F"
  52. "GPG key to encrypt org files for.")
  53. ;; Hosts
  54. ;; 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:
  55. ;; + [[file:hosts/localhost.org][Termux]]
  56. ;; + [[file:hosts/raspberry.org][Raspberry]]
  57. ;; + [[file:hosts/acernitro.org][Acernitro]]
  58. ;; + [[file:hosts/virtualbox.org][Virtualbox]]
  59. ;; Begin the process by loading any host specific overrides. The host configuration tangles, and loads (if it exist) using the systems name.
  60. (let ((host-file (concat dotfiles/home "/hosts/" system-name ".org")))
  61. (when (file-exists-p host-file)
  62. (org-babel-load-file host-file)))
  63. ;; Modules
  64. ;; 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~.
  65. ;; + [[file:modules/core.org][Core]]
  66. ;; + [[file:modules/editor.org][Editor]]
  67. ;; + [[file:modules/email.org][Email]]
  68. ;; + [[file:modules/desktop.org][Desktop]]
  69. ;; + [[file:modules/writing.org][Writing]]
  70. ;; + [[file:modules/website.org][Website]]
  71. ;; + [[file:modules/projects.org][Projects]]
  72. ;; + [[file:modules/interface.org][Interface]]
  73. ;; By default all of the modules will load, override the variable ~dotfiles/modules~ in a host configuration to override this.
  74. (dolist (m dotfiles/modules)
  75. (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".org")))
  76. (when (file-exists-p mod-file)
  77. (org-babel-load-file mod-file))))