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/contrib/usr/trishume/packages.el

77 lines
1.9 KiB
EmacsLisp
Raw Normal View History

2014-10-19 19:53:01 +00:00
(defvar trishume-packages
'(
2014-10-30 23:18:00 +00:00
idris-mode
arduino-mode
scad-mode
qml-mode
julia-mode
2014-10-25 15:08:39 +00:00
helm-ag
2014-10-26 17:55:13 +00:00
lua-mode
nix-mode
2014-11-02 16:33:25 +00:00
racket-mode
yaml-mode
2014-10-31 13:07:32 +00:00
ag
2014-11-10 20:25:20 +00:00
hungry-delete
2014-10-19 19:53:01 +00:00
))
2014-10-30 23:18:00 +00:00
(defun trishume/init-arduino-mode ()
(use-package arduino-mode :defer t))
(defun trishume/init-idris-mode ()
(use-package idris-mode :defer t))
(defun trishume/init-scad-mode ()
(use-package scad-mode :defer t))
(defun trishume/init-nix-mode ()
(use-package nix-mode :defer t))
2014-10-30 23:18:00 +00:00
(defun trishume/init-qml-mode ()
(use-package qml-mode :defer t))
(defun trishume/init-julia-mode ()
(use-package julia-mode :defer t))
2014-10-25 15:08:39 +00:00
(defun trishume/init-helm-ag ()
(use-package helm-ag
:init
(progn
(defun trishume-helm-ag ()
(interactive)
(helm-ag (projectile-project-root)))
(evil-leader/set-key
2014-10-31 13:07:32 +00:00
"oa" 'trishume-helm-ag))))
2014-10-26 17:55:13 +00:00
(defun trishume/init-lua-mode ()
(use-package lua-mode
:defer t))
2014-11-02 16:33:25 +00:00
(defun trishume/init-yaml-mode ()
(use-package yaml-mode
:defer t))
(defun trishume/init-racket-mode ()
(use-package racket-mode
:defer t
:config
(progn
(add-to-list 'sp--lisp-modes 'racket-mode)
(sp-local-pair 'racket-mode "'" nil :actions nil)
(evil-leader/set-key-for-mode 'racket-mode
"ml" 'evil-lisp-state
"mt" 'racket-test
"mg" 'racket-visit-definition
"mhd" 'racket-doc)
(add-hook 'racket-mode-hook
'(lambda ()
(define-key racket-mode-map (kbd "H-r") 'racket-run))))))
2014-11-10 20:25:20 +00:00
(defun trishume/init-hungry-delete ()
(use-package hungry-delete
:init (global-hungry-delete-mode)
:config
(progn
(setq-default hungry-delete-chars-to-skip " \t\f\v") ; only horizontal whitespace
(define-key hungry-delete-mode-map (kbd "DEL") 'hungry-delete-backward)
(define-key hungry-delete-mode-map (kbd "S-DEL") 'delete-backward-char))))