-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path_lua.el
More file actions
23 lines (18 loc) · 676 Bytes
/
_lua.el
File metadata and controls
23 lines (18 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; -*-emacs-lisp-*-
;;;
;;; lua configuration
;;;
(with-eval-after-load "lua-mode"
;;(define-key lua-mode-map [(control ?c) ?\!] 'run-js)
(when (and (fboundp 'lua-setup-keymap)
(null lua-mode-map))
(setq lua-mode-map (lua-setup-keymap)))
(when (keymapp lua-mode-map)
(define-key lua-mode-map [(control ?c) (control ?r)] 'lua-send-region)
(define-key lua-mode-map [(control ?c) (control ?b)] 'lua-send-buffer)
(define-key lua-mode-map [(control ?c) (control ?l)]
'lua-send-current-line)
(define-key lua-mode-map [(control ?c) (control ?e)]
'lua-send-lua-region)))
(when (locate-library "lua-mode")
(require 'lua-mode))