Function: lua-set-prefix-key

lua-set-prefix-key is an interactive and byte-compiled function defined in lua-mode.el.gz.

Signature

(lua-set-prefix-key NEW-KEY-STR)

Documentation

Change lua-prefix-key to NEW-KEY-STR and update keymaps.

This function replaces previous prefix-key binding with a new one.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defun lua-set-prefix-key (new-key-str)
  "Change `lua-prefix-key' to NEW-KEY-STR and update keymaps.

This function replaces previous prefix-key binding with a new one."
  (interactive "sNew prefix key (empty string means no key): ")
  (lua--customize-set-prefix-key 'lua-prefix-key (kbd new-key-str))
  (message "Prefix key set to %S" lua-prefix-key))