This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+fun/xkcd/packages.el

29 lines
768 B
EmacsLisp
Raw Normal View History

2015-03-27 13:09:22 +00:00
;;; packages.el --- xkcd Layer packages File for Spacemacs
;;
2018-01-04 07:00:25 +00:00
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
2015-03-27 13:09:22 +00:00
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq xkcd-packages '(xkcd))
2015-03-27 13:09:22 +00:00
(defun xkcd/init-xkcd ()
(use-package xkcd-mode
:defer t
2015-03-27 13:09:22 +00:00
:init
(progn
(setq xkcd-cache-dir (concat spacemacs-cache-directory "xkcd/"))
(when (not (file-directory-p xkcd-cache-dir))
(make-directory xkcd-cache-dir))
(spacemacs/set-leader-keys
2015-03-27 13:09:22 +00:00
"ax" 'xkcd)
(evilified-state-evilify xkcd-mode xkcd-mode-map
"h" 'xkcd-prev
"j" 'xkcd-next
"k" 'xkcd-prev
"l" 'xkcd-next))))