init.el 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. ;;; package --- Init Emacs
  2. ;;;
  3. ;;; Commentary:
  4. ;;; Init and load my configuration for Emacs
  5. ;;;
  6. ;;; Code:
  7. ;; Path
  8. (load-file "~/.emacs.d/config/path.el")
  9. ;; Packages
  10. (require 'setup-package)
  11. (require 'setup-elget)
  12. ;;Theme
  13. (require 'base-color)
  14. (require 'conf-theme)
  15. ;; Load up the general config
  16. (require 'general)
  17. (require 'conf-init)
  18. (require 'shortcuts)
  19. (require 'hooks)
  20. (require 'conf-fringe)
  21. ;;Flycheck
  22. (require 'conf-flycheck)
  23. ;; Line Numeber
  24. (require 'conf-linum)
  25. ;; Auto Pair
  26. ;(require 'conf-autopair)
  27. ;(autopair-global-mode 0)
  28. (require 'conf-smartparens)
  29. ;; Install a custom mode line
  30. (require 'conf-powerline)
  31. ;; Finalize things
  32. ;; (load-file "~/.emacs.d/emacs/finalize.el")
  33. ;; Colour theme and other gui related config
  34. (require 'gui-config)
  35. ;;Color shell text
  36. (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
  37. ;; Tree Directory
  38. (require 'nav)
  39. ;;(nav-disable-overeager-window-splitting)
  40. (autoload 'dirtree "dirtree" "Add directory to tree view")
  41. (defun ep-dirtree ()
  42. (interactive)
  43. (dirtree-in-buffer eproject-root t))
  44. ;; Functions (load all files in defuns-dir)
  45. (setq defuns-dir (expand-file-name "defuns" user-emacs-directory))
  46. (dolist (file (directory-files defuns-dir t "\\w+"))
  47. (when (file-regular-p file)
  48. (load file)))
  49. ;; Load Modes
  50. (require 'conf-python)
  51. ;; (load-file "~/.emacs.d/emacs/modes/column-marker.el")
  52. ;; (load-file "~/.emacs.d/emacs/modes/css.el")
  53. ;; (load-file "~/.emacs.d/emacs/modes/erc.el")
  54. ;; (load-file "~/.emacs.d/emacs/modes/eshell.el")
  55. ;; ;(load-file "~/.emacs.d/emacs/modes/flymake.el")
  56. ;; ;(load-file "~/.emacs.d/emacs/modes/identica.el")
  57. ;; (load-file "~/.emacs.d/emacs/modes/longlines.el")
  58. ;; (load-file "~/.emacs.d/emacs/modes/magit.el")
  59. ;; (load-file "~/.emacs.d/emacs/modes/mozrepl.el")
  60. ;; (load-file "~/.emacs.d/emacs/modes/yasnippet.el")
  61. ;; ;(load-file "~/.emacs.d/emacs/modes/org.el")
  62. ;; ;(load-file "~/.emacs.d/emacs/modes/php.el")
  63. ;; (load-file "~/.emacs.d/emacs/modes/tramp.el")
  64. ;; (load-file "~/.emacs.d/emacs/modes/visual-regexp.el")
  65. ;; (load-file "~/.emacs.d/emacs/modes/wordcount.el")
  66. ;; (load-file "~/.emacs.d/emacs/modes/ido.el")
  67. ;; (load-file "~/.emacs.d/emacs/modes/smex.el")
  68. ;; (load-file "~/.emacs.d/emacs/modes/uniquify.el")
  69. ;; (load-file "~/.emacs.d/emacs/modes/ediff.el")
  70. ;; (load-file "~/.emacs.d/emacs/modes/ace-jump.el")
  71. ;; (load-file "~/.emacs.d/emacs/modes/web-mode.el")
  72. ;; (load-file "~/.emacs.d/emacs/modes/highlight-parentheses.el")
  73. ;; ;(load-file "~/.emacs.d/emacs/modes/highlight-sexps.el")
  74. ;; (load-file "~/.emacs.d/emacs/modes/multiple-cursors.el")
  75. ;; (require 'conf-tabbar)
  76. ;; (require 'conf-ideskel)
  77. ;; (require 'conf-popwin)
  78. ;; (require 'conf-jedi)
  79. ;; (require 'conf-buffer-management)
  80. ;; (require 'conf-file-management)
  81. ;; ;(require 'conf-helm)
  82. ;; (require 'conf-skewer)
  83. ;; (require 'conf-projectile)
  84. ;; (require 'conf-ibuffer)
  85. ;; (require 'conf-dired)
  86. ;; (require 'buffer-move)
  87. ;; (require 'conf-python)
  88. ;; (require 'conf-auto-indent)
  89. ;; (require 'conf-hideshow)
  90. ;; (require 'conf-paredit)
  91. ;; (require 'conf-perspective)
  92. ;; (require 'conf-isearch)
  93. ;; (require 'conf-hideshowvis)
  94. ;; (require 'conf-highlight-symbol)
  95. ;; ;(require 'conf-mode-line)
  96. ;; (require 'conf-highlight-indentation)
  97. ;; (require 'conf-json)
  98. ;; Test
  99. ;; (require 'expand-region)
  100. ;; (require 'delsel)
  101. ;; (require 'jump-char)
  102. ;; ;(require 'eproject)
  103. ;; (require 'smart-forward)
  104. ;; (require 'change-inner)
  105. ;; (require 'tabkey2)
  106. ;; ;(require 'multifiles)
  107. ;; fixme mode
  108. (require 'fixme-mode)
  109. (fixme-mode)