Skip to content

Commit b2bced6

Browse files
committed
Added spacemacs bindings for compiling
1 parent e03a6f1 commit b2bced6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ This is a Spacemacs layer for K which provides syntax highlighting via k3-mode.
55

66
K3-Mode: https://github.com/kframework/k-editor-support/blob/master/emacs/k3-mode.el
77

8+
Key Bindings and Commands
9+
=========================
10+
11+
| Key | Function |
12+
|--------------------|---------------------------------------------------------------------------------|
13+
| <kbd>SPC m c</kbd> | Compile using Makefile
14+
815

916
Installation
1017
==============
@@ -13,3 +20,4 @@ Installation
1320
$ mv k-framework ~/.emacs.d/private/local
1421

1522
Then simply add 'k-framework' as one of your configuration layers in your spacemacs config.
23+

k-framework/packages.el

+9
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@
1111
:defer t
1212
:mode "\\.k\\'"
1313
)
14+
15+
)
16+
17+
(defun k-framework/post-init-k3-mode ()
18+
(spacemacs/set-leader-keys-for-major-mode 'k3-mode
19+
"c" 'compile
20+
)
1421
)
22+
23+

0 commit comments

Comments
 (0)