Emacs personal configuration
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

135 lines
4.0KB

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