;;; init-template.el --- Initialize something -*- lexical-binding: t -*- ;;; Commentary: ;; I place URLs and notes here. ;;; Code: ;; I write code in this order: ;; ;; 1. I install packages when needed using `package-install'. ;; ;; 2. I load packages when needed using `require'. ;; ;; 3. I define key bindings when needed using `keymap-global-set' and ;; `keymap-set'. I prefer that this code be near the top because it's the ;; code I'll most likely want to refer to quickly. ;; ;; 4. I set variables when needed using `setq' and `setq-default'. I prefer that ;; this code be near the top because I think it's the main section. ;; ;; 5. I add values to lists when needed using `add-to-list'. I prefer that this ;; code follow the variable assignments because lists are also variables. ;; ;; 6. I call functions when needed. This code must follow the variable ;; assignments and list modifications because some functions use the ;; variables and lists. ;; ;; 7. I set hooks when needed using `add-hook' and `remove-hook'. I prefer that ;; this code follow the function calls because the functions that I add to ;; hooks will also be called. Also, I prefer that the hooks section ;; immediately preceed the function definitions (the next section) because I ;; sometimes define a function in an `add-hook'. ;; ;; 8. I define functions when needed using `defun'. Functions definitions are ;; ordered alphabetically. Global variables that are associated with the ;; functions in this section should be defined using `defvar' immediately ;; before each associated function. ;; ;; 9. I define aliases when needed using `defalias'. I prefer that this code ;; follow the function definitions because aliases are another form of ;; function definition. ;; ;; 10. I specify safe local variables using `safe-local-variable' and `put'. I ;; prefer that this code be near the bottom because I think it's the least ;; important. ;; ;; 11. I call `provide'. (provide 'init-template) ;;; init-template.el ends here