Emacs personal configuration
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

131 Zeilen
3.9KB

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