Skip to content

Commit

Permalink
Should fix #1
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Patil <[email protected]>
  • Loading branch information
Sachin Patil committed Apr 16, 2016
1 parent 5d75a09 commit 03a20c4
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ReadMe.org
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@
#+END_SRC

- Edit =;; Personal info= section in file =general_config.el=
- Optionally, run =make= to byte-compile config files.
- Start Emacs

** Contribute
- Feel free to send PRs
- Create new issues
- Make sure to run tests before sending a PR
#+BEGIN_SRC shell
make test
#+END_SRC

** Gnus
- Optionally you can edit parameter in =gnus.el= and copy the file as =~/.gnus.el=
33 changes: 33 additions & 0 deletions ert-tests/emacsd-test.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
;;; emacsd-test.el --- Tests for .emacs.d

;; Dumb tests to check if config files exists
(ert-deftest emacsd-init-file-exists-test ()
"Check if init.el exists"
(should (equal (file-exists-p "../init.el") t)))

(ert-deftest emacsd-general_config-file-exists-test ()
"Check if general_config.el exists"
(should (equal (file-exists-p "../general_config.el") t)))

(ert-deftest emacsd-install-file-exists-test ()
"Check if install.el exists"
(should (equal (file-exists-p "../install.el") t)))

(ert-deftest emacsd-defalias-file-exists-test ()
"Check if defalias.el exists"
(should (equal (file-exists-p "../defalias.el") t)))

(ert-deftest emacsd-kbd_macro-file-exists-test ()
"Check if kbd_macro.el exists"
(should (equal (file-exists-p "../kbd_macro.el") t)))

(ert-deftest emacsd-package_init-file-exists-test ()
"Check if kbd_package_init.el exists"
(should (equal (file-exists-p "../package_init.el") t)))

;; Optional
(ert-deftest emacsd-gnus-file-exists-test ()
"Check if gnus.el exists"
(should (equal (file-exists-p "../gnus.el") t)))

;; TODO: Test(s) for extensions/hidepw
8 changes: 8 additions & 0 deletions package_init.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
;; load package init

;; To avoid make error
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Declaring-Functions.html
(declare-function global-company-mode "company.el")
(declare-function global-auto-complete-mode "auto-complete.el")
(declare-function autopair-global-mode "autopair.el")
(declare-function ac-ispell-setup "ac-ispell.el")
(declare-function yas-global-mode "yasnippet.el")

(global-company-mode t)
(global-auto-complete-mode t)
(autopair-global-mode t)
Expand Down

0 comments on commit 03a20c4

Please sign in to comment.