On Friday, 14 October 2016 at 06:26:45 UTC, Vladimir Panteleev wrote:
On Friday, 14 October 2016 at 06:23:15 UTC, Martin Tschierschke wrote:
Is there a good (emacs) mode for editing the vibe.d diet templates?

Not that I know of, but you could try your luck with https://github.com/brianc/jade-mode or https://github.com/ananthakumaran/jade-mode.

I tried around a while ago, but I ended with this in my .emacs,
I am not a lisp expert, to say it polite.

;; initial window
(setq initial-frame-alist
        (width . 122) ; character
        (height . 54) ; lines

(add-to-list 'load-path "~/elisp")

(add-to-list 'load-path "~/.emacs.d/vendor/jade-mode")

(require 'sws-mode)
(require 'jade-mode)
(add-to-list 'auto-mode-alist '("\\.dt\\'" . sws-mode))
(autoload 'sws-mode "sws-mode" "Major mode for editing jade code." t)

(autoload 'php-mode "php-mode" "Major mode for editing php code." t)
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.d$" . d-mode))
(add-to-list 'auto-mode-alist '("\\.dt$" . d-mode))
(add-to-list 'auto-mode-alist '("\\.dt$" . whitespace-mode))

(setq-default tab-width 4)

So a real diet-mode would be cool :-)

Regards mt.

Reply via email to