summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2018-03-12 10:28:33 -0700
committerbenj <benj@rse8.com>2018-03-12 10:28:33 -0700
commitb7f46055c7e3cf0a465067d9148e8042da2b033a (patch)
tree1824ed158cfcb3b981a2edbaa1bfa646612a2cb8 /init.el
parent013801a9d3630c6a12a6cc2b04f657f0bcee4a5a (diff)
downloademacs-b7f46055c7e3cf0a465067d9148e8042da2b033a.tar
emacs-b7f46055c7e3cf0a465067d9148e8042da2b033a.tar.gz
emacs-b7f46055c7e3cf0a465067d9148e8042da2b033a.tar.bz2
emacs-b7f46055c7e3cf0a465067d9148e8042da2b033a.tar.lz
emacs-b7f46055c7e3cf0a465067d9148e8042da2b033a.tar.xz
emacs-b7f46055c7e3cf0a465067d9148e8042da2b033a.tar.zst
emacs-b7f46055c7e3cf0a465067d9148e8042da2b033a.zip
Added default behavior to emacs gui: C-x C-c => open ansi-term buffer
Diffstat (limited to 'init.el')
-rw-r--r--init.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/init.el b/init.el
index 9eb9f95..79d9ecf 100644
--- a/init.el
+++ b/init.el
@@ -1,11 +1,10 @@
-;; Suppress splash screen
-
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
+;; Suppress splash screen
(setq inhibit-startup-message t)
(setq settings-dir
@@ -23,9 +22,14 @@
;; Are we on a mac?
(setq is-mac (equal system-type 'darwin))
+;; Are we in gui or terminal?
+(if (display-graphic-p)
+ (load-theme 'solarized-dark))
+
+
(require 'setup-package)
-(defun init--install-packages()
+(defun init-install-packages()
(packages-install
'(cider
clojure-mode
@@ -57,10 +61,10 @@
yasnippet)))
(condition-case nil
- (init--install-packages)
+ (init-install-packages)
(error
(package-refresh-contents)
- (init--install-packages)))
+ (init-install-packages)))
(require 'sane-defaults)
@@ -93,4 +97,5 @@
(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)
(put 'narrow-to-region 'disabled nil)
+
;;; init.el ends here