Move the monokai-dark-theme file to canonical location

This commit is contained in:
Frederik Hanghøj Iversen 2019-05-08 09:28:28 +02:00
parent 000ddfe350
commit 2fcfd2a605
2 changed files with 32 additions and 27 deletions

View file

@ -96,33 +96,6 @@
'(window-resize-pixelwise t)) '(window-resize-pixelwise t))
;;;; MAC setup
(defun set-xdg-variables ()
"Set the XDG base directory variables to sane defaults."
(setenv "XDG_CONFIG_HOME" (substitute-in-file-name "$HOME/.config"))
(setenv "XDG_DATA_HOME" (substitute-in-file-name "$HOME/.local/share"))
(setenv "XDG_CACHE_HOME" (substitute-in-file-name "$HOME/.cache")))
(defun x11-shim ()
"Replace some behaviour otherwise handled by other system services."
(load-theme 'monokai-dark)
(set-xdg-variables))
;;; Needed on MAC because we're not using Xresources :(
(if (not (eq window-system 'x))
(x11-shim))
;;;; Faces
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;;;; Additional packages ;;;; Additional packages
;;;; Maybe we should use qelpa to mangage these. ;;;; Maybe we should use qelpa to mangage these.
@ -151,6 +124,9 @@
(require 'agda2-mode) (require 'agda2-mode)
;; TODO Why is this not handled by the magic with the load-path above?
(load-file "lisp/monokai-dark-theme/monokai-dark-theme.el")
;; (require 'lsp) ;; (require 'lsp)
;; Shame! `lsp-ui` is emitting: ;; Shame! `lsp-ui` is emitting:
;; Eager macro-expansion failure: (wrong-type-argument listp kind) ;; Eager macro-expansion failure: (wrong-type-argument listp kind)
@ -159,6 +135,34 @@
;; (add-hook 'lsp-mode-hook 'lsp-ui-mode) ;; (add-hook 'lsp-mode-hook 'lsp-ui-mode)
;; (add-hook 'haskell-mode-hook #'lsp) ;; (add-hook 'haskell-mode-hook #'lsp)
;;;; MAC setup
(defun set-xdg-variables ()
"Set the XDG base directory variables to sane defaults."
(setenv "XDG_CONFIG_HOME" (substitute-in-file-name "$HOME/.config"))
(setenv "XDG_DATA_HOME" (substitute-in-file-name "$HOME/.local/share"))
(setenv "XDG_CACHE_HOME" (substitute-in-file-name "$HOME/.cache")))
(defun x11-shim ()
"Replace some behaviour otherwise handled by other system services."
(load-theme 'monokai-dark)
(set-xdg-variables))
;;; Needed on MAC because we're not using Xresources :(
(if (not (eq window-system 'x))
(x11-shim))
;;;; Faces
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;;;; Captain Hook ;;;; Captain Hook

View file

@ -4,6 +4,7 @@
;;; ;;;
;;; Commentary: ;;; Commentary:
;;; Code: ;;; Code:
;; (provide 'monokai-dark-theme)
(deftheme monokai-dark (deftheme monokai-dark
"Created 2019-03-28 by fredefox.") "Created 2019-03-28 by fredefox.")