about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-12-22T20·57+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-12-24T15·21+0000
commit7adb77692752ab0225a5eeee14bde095596f7c04 (patch)
tree27880bc8242ce72352cf08264de311b6934b9b9d /configs
parentf739534203439b584a60771f644f869ff55bc156 (diff)
Support Prolog
Register the .pl file extension with `prolog-mode'. This is useful because I'm
reading the "Learn Prolog Now!" book at the moment.
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/.emacs.d/init.el5
-rw-r--r--configs/shared/.emacs.d/wpc/packages/wpc-prolog.el16
2 files changed, 21 insertions, 0 deletions
diff --git a/configs/shared/.emacs.d/init.el b/configs/shared/.emacs.d/init.el
index a59b03e425b0..6c8794d22a69 100644
--- a/configs/shared/.emacs.d/init.el
+++ b/configs/shared/.emacs.d/init.el
@@ -49,3 +49,8 @@
 (require 'wpc-python)
 (require 'wpc-javascript)
 (require 'wpc-java)
+(require 'wpc-prolog)
+
+
+(provide 'init)
+;;; init.el ends here
diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-prolog.el b/configs/shared/.emacs.d/wpc/packages/wpc-prolog.el
new file mode 100644
index 000000000000..94e705b1b114
--- /dev/null
+++ b/configs/shared/.emacs.d/wpc/packages/wpc-prolog.el
@@ -0,0 +1,16 @@
+;;; wpc-prolog.el --- For Prologging things -*- lexical-binding: t -*-
+;; Author: William Carroll <wpcarro@gmail.com>
+
+;;; Commentary:
+;; Code configuring my Prolog work.
+
+;;; Code:
+
+(require 'macros)
+
+;; TODO: Notice that the .pl extension conflicts with Perl files. This may
+;; become a problem should I start working with Perl.
+(macros/support-file-extension "pl" prolog-mode)
+
+(provide 'wpc-prolog)
+;;; wpc-prolog.el ends here