I have emmet-mode installed and smart-tab installed and I want to rebind the default C-j of emmet to smart-tabs TAB.
(require 'emmet-mode) (add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes (add-hook 'css-mode-hook 'emmet-mode) ;; enable Emmet's css abbreviation. (setq emmet-move-cursor-between-quotes t) ;; default nil (require 'smart-tab) (global-smart-tab-mode 1) (define-key emmet-expand-line [(tab)] 'smart-tab) ;;; http://www.emacswiki.org/emacs/TabCompletion (defun hippie-unexpand () (interactive) (hippie-expand 0)) (define-key read-expression-map [(shift tab)] 'hippie-unexpand)
This is the error
Warning (initialization): An error occurred while loading `c:/Users/Sayth/AppData/Roaming/.emacs.d/init.el': Symbol's value as variable is void: emmet-expand-line
I am copying the format from here https://www.gnu.org/software/emacs/manual/html_mono/elisp.html#Remapping-Commands but I appear to be getting it wrong.
(define-key my-mode-map [remap kill-line] 'my-kill-line)
and this action is what is advised by the package author https://github.com/smihica/emmet-mode
press C-j to expand it (or alternatively, alias your preferred keystroke to M-x emmet-expand-line)