blob: ab86d1258fc0c31bb6611159eae82dac0bda9ea2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
;;; janet.el -*- lexical-binding: t; -*-
;;;
;;; Author: Jakob L. Kreuze <zerodaysfordays@sdf.org>
;;; URL: https://git.sr.ht/~jakob/.emacs.d/
;;;
;;; Configuration of a development environment for the Janet programming
;;; language.
;;;
(use-package janet-mode
:bind (:map janet-mode-map ("C-M-x" . inf-janet-eval-defun)))
(use-package inf-janet
:straight (inf-janet :type git :host github :repo "velkyel/inf-janet")
:init (setq inf-janet-program "janet")
:hook
(inf-janet-mode .
(lambda ()
;; Disable font-locking in this buffer to improve performance
(font-lock-mode -1)
;; Prevent font-locking from being re-enabled in this buffer
(make-local-variable 'font-lock-function)
(setq font-lock-function (lambda (_) nil))
(add-hook 'comint-preoutput-filter-functions 'xterm-color-filter nil t)
(add-hook 'comint-preoutput-filter-functions 'xterm-title-filter nil t))))
|
© 2015 - 2026 Jakob L. Kreuze