aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-10-21 11:55:32 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2016-10-21 11:55:32 +0200
commited87ba72282a8e5c2cd3f5631748726c930809bd (patch)
tree7630ffdce6bcf1fdcda49ca04b3dc890e52d18ee /emacs/init.el
parente46f1d3dea4f7cda296628b81b174f6ed7a42032 (diff)
downloaddotfiles-ed87ba72282a8e5c2cd3f5631748726c930809bd.tar.gz
dotfiles-ed87ba72282a8e5c2cd3f5631748726c930809bd.zip
emacs: trying to test it with travis
Files and idea taken from https://github.com/purcell/emacs.d. I've also added the bin/test directory into it. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 7a3f8de..295c7ac 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -128,8 +128,10 @@
;; Graphical interface tweaks
(menu-bar-mode -1)
-(tool-bar-mode -1)
-(scroll-bar-mode -1)
+(when (fboundp 'set-scroll-bar-mode)
+ (set-scroll-bar-mode nil))
+(when (fboundp 'tool-bar-mode)
+ (tool-bar-mode -1))
;; Lines and columns
(line-number-mode 1)
@@ -204,7 +206,7 @@ The user will end up in the *scratch* buffer."
;;; My lisp directory
-(add-to-list 'load-path "~/.emacs.d/lisp")
+(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
(require 'g)
;;; Packages
@@ -214,6 +216,7 @@ The user will end up in the *scratch* buffer."
;; for Emacs out there. After trying some custom functions to handle
;; package-install, I decided on use-package because I feel more well-organized.
(unless (package-installed-p 'use-package)
+ (package-refresh-contents)
(package-install 'use-package))
(require 'use-package)