init.el 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ;; -*- lexical-binding: t; -*-
  2. ;;; Commentary:
  3. ;; This file bootstraps the configuration, which is divided into
  4. ;;; a number of other files.
  5. ;; Added by Package.el. This must come before configurations of
  6. ;; installed packages. Don't delete this line. If you don't want it,
  7. ;; just comment it out by adding a semicolon to the start of the line.
  8. ;; You may delete these explanatory comments.
  9. (add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
  10. ;;(require 'init-benchmarking) ;; Measure startup time
  11. ;;----------------------------------------------------------------------------
  12. ;; Bootstrap config
  13. ;;----------------------------------------------------------------------------
  14. (require 'init-utils)
  15. ;;(require 'init-elpa) ;; Machinery for installing required packages
  16. ;;----------------------------------------------------------------------------
  17. ;; Allow users to provide an optional "init-preload-local.el"
  18. ;;----------------------------------------------------------------------------
  19. ;;(require 'init-preload-local nil t)
  20. ;;----------------------------------------------------------------------------
  21. ;; Load configs for specific features and modes
  22. ;;----------------------------------------------------------------------------
  23. ;; (require-package 'use-package)
  24. ;; diminish hides packages from being on the modeline. You can use use-package to do this
  25. ;; (use-package diminish :ensure t)
  26. ;; to use :bind with use-package, require bind-key
  27. (require 'bind-key)
  28. (require 'use-package)
  29. ;;(use-package bind-key :ensure t)
  30. ;; make use-package tell me which packages take longer than 0.1s to load
  31. (setq use-package-verbose t)
  32. ;; let's get modal keybinding working!
  33. ;; And let's load it in quickly, so I can always use evil-mode
  34. ;; even when my config is broken.
  35. ;;(require 'org)
  36. (org-babel-load-file "~/.config/emacs/lisp/init-evil.org")
  37. ;; Make my evil keybindings work pretty much everywhere
  38. (require 'init-evil-rebellion-clone)
  39. ;;(require 'init-pdf-tools)
  40. ;; make opening specific types of files,
  41. ;; autoinsert a yasnippet
  42. (org-babel-load-file "~/.config/emacs/lisp/init-autoinsert.org")
  43. ;; check internet connection
  44. (org-babel-load-file "~/.config/emacs/lisp/init-check-network-connection.org")
  45. ;;load is many packages
  46. (org-babel-load-file "~/.config/emacs/lisp/init-load-small-packages.org")
  47. ;; emacs can read email
  48. ;; this file only gets loaded when I do a good old M-x Gnus
  49. ;;(org-babel-load-file "~/.config/emacs/lisp/init-gnus.org")
  50. ;; some graphical configurations
  51. (org-babel-load-file "~/.config/emacs/lisp/init-gui-frames.org")
  52. ;; my org configuration
  53. (org-babel-load-file "~/.config/emacs/lisp/init-org.org")
  54. (org-babel-load-file "~/.config/emacs/lisp/init-lisp.org")
  55. ;;(org-babel-load-file "~/.config/emacs/lisp/init-javascript.org")
  56. (org-babel-load-file "~/.config/emacs/lisp/init-editing-utils.org")
  57. ;;an irc client for Emacs
  58. (org-babel-load-file "~/.config/emacs/lisp/init-erc.org")
  59. ;; load my web-mode configurations
  60. (org-babel-load-file "~/.config/emacs/lisp/init-html.org")
  61. ;; some specific defuns that I have written
  62. (org-babel-load-file "~/.config/emacs/lisp/init-defuns.org")
  63. ;;(org-babel-load-file "~/.config/emacs/lisp/init-honorscollege.org")
  64. (org-babel-load-file "~/.config/emacs/lisp/init-misc.org")
  65. ;;(org-babel-load-file "~/.config/emacs/lisp/init-flycheck.org")
  66. ;;----------------------------------------------------------------------------
  67. ;; Variables configured via the interactive 'customize' interface
  68. ;;----------------------------------------------------------------------------
  69. (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
  70. (when (file-exists-p custom-file)
  71. (load custom-file))
  72. ;; ert is the emacs lisp regression test. It lets you test that your lisp files
  73. ;; pass defined tests
  74. ;;----------------------------------------------------------------------------
  75. ;; Locales (setting them earlier in this file doesn't work in X)
  76. ;;----------------------------------------------------------------------------
  77. (provide 'init)
  78. ;; Local Variables:
  79. ;; coding: utf-8
  80. ;; no-byte-compile: t
  81. ;; End:
  82. ;;; init.el ends here
  83. ;;(put 'scroll-left 'disabled nil)
  84. ;;(put 'set-goal-column 'disabled nil)
  85. (put 'narrow-to-page 'disabled nil)