1
0
Fork 0
dotfiles/.emacs.d/include/racket.el
Lucas Sta Maria 17b05d5d26
fix(emacs): use keymap-local-set instead of local-set-key
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
2024-01-23 16:36:38 -05:00

21 lines
764 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."
(keymap-local-set "C-c C-c" #'compile))
(add-hook 'scribble-mode-hook #'configure-scribble)
(provide 'racket)
;;; racket.el ends here