Spacemacs-(dark/light) themes added with spaceline.

This commit is contained in:
Sameer Rahmani 2017-04-08 03:27:24 +04:30
parent a075dbe921
commit 8fb30b72a5
5 changed files with 47 additions and 4 deletions

View File

@ -1,14 +1,28 @@
(add-to-list 'load-path (concat (getenv "FG42_HOME") "/lib"))
;(toggle-debug-on-error)
;; DEBUG
;; =====
;; Uncomment the below code to trigger stacktraces in case of any errors
;; (toggle-debug-on-error)
(require 'fg42)
;; THEME
;; =====
;; Load the default theme
(theme themes/color-theme-monokai)
;; Other options are:
;; (theme themes/color-theme-spacemacs-monokai)
;; (theme themes/color-theme-spacemacs-light)
(theme themes/color-theme-spacemacs-dark)
;; Disable abilities which we do not want to load
;; ABILITIES
;; =========
;; Disable abilities which you don't want.
(disable 'rbenv 'helm 'spell 'linum)
;; Activate these extensions
;; EXTENSIONS
;; ==========
;; Uncomment extensions that you may need.
(activate-extensions 'editor
'development
'web
@ -21,6 +35,8 @@
'ruby
)
;; USER CONFIGS
;; ============
;; Load user config file in ~/.fg42.el
(load-user-config "~/.fg42.el")
;; NOTE: It's important to use ~/.fg42.el instead of this file

View File

@ -9,6 +9,10 @@
(depends-on 'seq)
(depends-on 'ov)
(depends-on 'cheatsheet)
(depends-on 'spacemacs-theme)
(with-ability spaceline
(depends-on 'spaceline))
(with-ability guru
(depends-on 'guru-mode))

View File

@ -56,6 +56,11 @@
(ability spaceline ()
"A really cool mode line alternative which borrowed from awesome spacemacs"
(require 'spaceline-config)
(spaceline-spacemacs-theme))
;; Tramp configuration -------------------------------------
(ability tramp ()
(setq tramp-default-method "ssh")

View File

@ -0,0 +1,9 @@
(require 'spacemacs-common)
(defun themes/color-theme-spacemacs-dark ()
"Spacemacs dark color theme"
(interactive)
(deftheme spacemacs-dark "Spacemacs theme, the dark version")
(create-spacemacs-theme 'dark 'spacemacs-dark))
(provide 'themes/color-theme-spacemacs-dark)

View File

@ -0,0 +1,9 @@
(require 'spacemacs-common)
(defun themes/color-theme-spacemacs-light ()
"Spacemacs light color theme"
(interactive)
(deftheme spacemacs-light "Spacemacs theme, the light version")
(create-spacemacs-theme 'light 'spacemacs-light))
(provide 'themes/color-theme-spacemacs-light)