Emacs personal configuration
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

143 行
4.2KB

  1. ;;'(("gnu" . "http://elpa.gnu.org/packages/")
  2. ;;("marmalade" . "http://marmalade-repo.org/packages/")
  3. ;;("melpa" . "http://melpa.milkbox.net/packages/"))
  4. ;; sort apropos by relevance
  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. (package-initialize)
  10. (setq apropos-sort-by-scores t)
  11. ;; bind M-i to imenu
  12. (global-set-key (kbd "M-i") 'imenu)
  13. ;; Purcell
  14. ;;; This file bootstraps the configuration, which is divided into
  15. ;;; a number of other files.
  16. (let ((minver 23))
  17. (unless (>= emacs-major-version minver)
  18. (error "Your Emacs is too old -- this config requires v%s or higher" minver)))
  19. (add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
  20. (require 'init-benchmarking) ;; Measure startup time
  21. (defconst *spell-check-support-enabled* nil) ;; Enable with t if you prefer
  22. ;;----------------------------------------------------------------------------
  23. ;; Bootstrap config
  24. ;;----------------------------------------------------------------------------
  25. (require 'init-utils)
  26. (require 'init-site-lisp) ;; Must come before elpa, as it may provide package.el
  27. (require 'init-elpa) ;; Machinery for installing required packages
  28. ;;(require 'init-exec-path) ;; Set up $PATH
  29. (require 'init-use-package) ;; Machinery for installing required packages
  30. ;;----------------------------------------------------------------------------
  31. ;; Allow users to provide an optional "init-preload-local.el"
  32. ;;----------------------------------------------------------------------------
  33. (require 'init-preload-local nil t)
  34. ;;----------------------------------------------------------------------------
  35. ;; Load configs for specific features and modes
  36. ;;----------------------------------------------------------------------------
  37. (require-package 'diminish)
  38. (require 'init-themes)
  39. (require 'init-isearch)
  40. (require 'init-recentf)
  41. ;;(require 'init-auto-complete)
  42. (require 'init-company)
  43. (require 'init-windows)
  44. (require 'init-flycheck)
  45. (require 'init-projectile)
  46. (require 'init-editing-utils)
  47. (require 'init-treemacs)
  48. (require 'init-git)
  49. (require 'init-github)
  50. ;; C/C++
  51. (require 'init-c)
  52. (require 'setup-helm)
  53. (require 'setup-helm-gtags)
  54. ;; (require 'setup-ggtags)
  55. (require 'setup-cedet)
  56. (require 'setup-editing)
  57. (require 'init-helm-projectile)
  58. (require 'capnp-mode)
  59. (require 'init-org)
  60. (require 'init-markdown)
  61. (require 'init-ox-pandoc)
  62. (require 'init-ox-gfm)
  63. (require 'init-pandoc)
  64. (require 'init-csv)
  65. (require 'init-javascript)
  66. (require 'init-typescript)
  67. (require 'init-php)
  68. (require 'init-nxml)
  69. (require 'init-html)
  70. (require 'init-css)
  71. (require 'init-python-mode)
  72. (require 'init-sql)
  73. (require 'init-octave)
  74. (require 'init-solidity)
  75. (require 'init-rust)
  76. (require 'init-haskell)
  77. (require 'init-latex)
  78. (require 'init-mu4e)
  79. (when *spell-check-support-enabled*
  80. (require 'init-spelling))
  81. (require 'init-dvorak)
  82. ;;(require 'init-marmalade)
  83. ;;----------------------------------------------------------------------------
  84. ;; Variables configured via the interactive 'customize' interface
  85. ;;----------------------------------------------------------------------------
  86. (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
  87. (when (file-exists-p custom-file)
  88. (load custom-file))
  89. ;;----------------------------------------------------------------------------
  90. ;; Allow access from emacsclient
  91. ;;----------------------------------------------------------------------------
  92. (require 'server)
  93. (unless (server-running-p)
  94. (server-start))
  95. ;;----------------------------------------------------------------------------
  96. ;; Allow users to provide an optional "init-local" containing personal settings
  97. ;;----------------------------------------------------------------------------
  98. (when (file-exists-p (expand-file-name "init-local.el" user-emacs-directory))
  99. (error "Please move init-local.el to ~/.emacs.d/lisp"))
  100. (require 'init-local nil t)
  101. (add-hook 'after-init-hook
  102. (lambda ()
  103. (message "init completed in %.2fms"
  104. (sanityinc/time-subtract-millis after-init-time before-init-time))))
  105. (provide 'init)
  106. ;; Local Variables:
  107. ;; coding: utf-8
  108. ;; no-byte-compile: t
  109. ;; End: