emacs: Enable 'guix-build-log-mode' for build log files.

* emacs/guix-build-log.el (auto-mode-alist): Add 'guix-build-log-mode'
  to 'auto-mode-alist'.
This commit is contained in:
Alex Kost 2015-10-29 20:48:53 +03:00
parent 6407ce8ea1
commit 0048552d0d
1 changed files with 7 additions and 0 deletions

View File

@ -346,6 +346,13 @@ programmatically using hooks:
(when font-lock-mode
(font-lock-fontify-buffer)))
;;;###autoload
(add-to-list 'auto-mode-alist
;; Regexp for log files (usually placed in /var/log/guix/...)
(cons (rx "/guix/drvs/" (= 2 alnum) "/" (= 30 alnum)
"-" (+ (any alnum "-+.")) ".drv" string-end)
'guix-build-log-mode))
(provide 'guix-build-log)
;;; guix-build-log.el ends here