Skip to content

Commit

Permalink
fix bug: loading non-elpa packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUO QL committed May 8, 2015
1 parent 003378e commit 58905fa
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
13 changes: 7 additions & 6 deletions init.el
Expand Up @@ -23,9 +23,10 @@
(require 'init-main)

;; debug code, to find to enables my auto-fill-mode
(if (not noninteractive)
(defadvice auto-fill-mode (around backtrace-fill-mode activate)
(message "------BEFORE-------")
(backtrace)
ad-do-it
(message "------AFTER--------")))
;;
;; (if (not noninteractive)
;; (defadvice auto-fill-mode (around backtrace-fill-mode activate)
;; (message "------BEFORE-------")
;; (backtrace)
;; ad-do-it
;; (message "------AFTER--------")))
3 changes: 0 additions & 3 deletions src/elisp/init-lang.el
Expand Up @@ -9,9 +9,6 @@
;;


(add-to-list 'load-path
(concatenate 'string user-emacs-directory "src/elisp/lang"))

;; markdown mode
(require 'init-md)

Expand Down
4 changes: 4 additions & 0 deletions src/elisp/init-main.el
Expand Up @@ -11,6 +11,10 @@
;; Common Libraries
(load-file "~/.emacs.d/src/elisp/common.el")

(dolist (path '("src/elisp/lang" "src/elisp/tools"))
(add-to-list 'load-path
(concatenate 'string user-emacs-directory path)))

;; platform vars
(require 'init-vars)

Expand Down
3 changes: 1 addition & 2 deletions src/elisp/init-non-elpa.el
Expand Up @@ -9,7 +9,6 @@
;; package not on elpa

;; asm/gas mode
(if-lang 'gas
(require 'init-as))
(require 'init-as)

(provide 'init-non-elpa)
4 changes: 0 additions & 4 deletions src/elisp/init-tools.el
Expand Up @@ -8,10 +8,6 @@
;; This file is not part of GNU Emacs.
;;


(add-to-list 'load-path
(concatenate 'string user-emacs-directory "src/elisp/tools"))

;; dired
(require 'init-dired)

Expand Down

0 comments on commit 58905fa

Please sign in to comment.