Emacs personal configuration
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

137 行
4.1KB

  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-editing-utils)
  46. (require 'init-treemacs)
  47. (require 'init-git)
  48. (require 'init-github)
  49. ;; C/C++
  50. (require 'init-c)
  51. (require 'setup-helm)
  52. (require 'setup-helm-gtags)
  53. ;; (require 'setup-ggtags)
  54. (require 'setup-cedet)
  55. (require 'setup-editing)
  56. (require 'capnp-mode)
  57. (require 'init-org)
  58. (require 'init-markdown)
  59. (require 'init-ox-pandoc)
  60. (require 'init-ox-gfm)
  61. (require 'init-pandoc)
  62. (require 'init-csv)
  63. (require 'init-javascript)
  64. (require 'init-php)
  65. (require 'init-nxml)
  66. (require 'init-html)
  67. (require 'init-css)
  68. (require 'init-python-mode)
  69. (require 'init-sql)
  70. (require 'init-octave)
  71. (require 'init-solidity)
  72. (require 'init-latex)
  73. (require 'init-mu4e)
  74. (when *spell-check-support-enabled*
  75. (require 'init-spelling))
  76. (require 'init-dvorak)
  77. ;;(require 'init-marmalade)
  78. ;;----------------------------------------------------------------------------
  79. ;; Variables configured via the interactive 'customize' interface
  80. ;;----------------------------------------------------------------------------
  81. (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
  82. (when (file-exists-p custom-file)
  83. (load custom-file))
  84. ;;----------------------------------------------------------------------------
  85. ;; Allow access from emacsclient
  86. ;;----------------------------------------------------------------------------
  87. (require 'server)
  88. (unless (server-running-p)
  89. (server-start))
  90. ;;----------------------------------------------------------------------------
  91. ;; Allow users to provide an optional "init-local" containing personal settings
  92. ;;----------------------------------------------------------------------------
  93. (when (file-exists-p (expand-file-name "init-local.el" user-emacs-directory))
  94. (error "Please move init-local.el to ~/.emacs.d/lisp"))
  95. (require 'init-local nil t)
  96. (add-hook 'after-init-hook
  97. (lambda ()
  98. (message "init completed in %.2fms"
  99. (sanityinc/time-subtract-millis after-init-time before-init-time))))
  100. (provide 'init)
  101. ;; Local Variables:
  102. ;; coding: utf-8
  103. ;; no-byte-compile: t
  104. ;; End: