1
0
Fork 0
dotfiles/.emacs.d/include/racket.el
Lucas Sta Maria 8ac7f4a5ae
fix(emacs): add additional scribble configuration
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
2023-12-29 04:39:31 -05:00

21 lines
766 B
EmacsLisp

;;; racket.el --- Configuration for Racket.
;;; Commentary:
;; Configuration for Racket and Racket-based languages, including Pollen.
;;; Code:
(add-to-list 'load-path (expand-file-name "lisp/pollen-mode" user-emacs-directory))
(autoload 'pollen-mode "pollen" "A major mode for the pollen preprocessor." t)
;; Recognize pollen filetypes
(setq auto-mode-alist (cons '("\\.pp$" . racket-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.pm$" . pollen-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.pmd$" . pollen-mode) auto-mode-alist))
(defun configure-scribble ()
"Configure keybinds for scribble"
(local-set-key (kbd "C-c C-c") #'compile))
(add-hook 'scribble-mode-hook #'configure-scribble)
(provide 'racket)
;;; racket.el ends here