Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-closing of tags with "</" not working in cli Emacs #5

Closed
echosa opened this issue Oct 8, 2012 · 4 comments
Closed

Auto-closing of tags with "</" not working in cli Emacs #5

echosa opened this issue Oct 8, 2012 · 4 comments

Comments

@echosa
Copy link

echosa commented Oct 8, 2012

If I run emacs in a GUI (Mac OS X) then typing <span> </ results in the closing </span> being auto-completed for me. This does not happen in cli Emacs (run with emacs -nw).

@fxbois
Copy link
Owner

fxbois commented Oct 8, 2012

It is a normal behaviour to prevent bad "suprises" when you copy and paste. You can force autocomplete with the var : web-mode-autocompletes-flag
(when you copy/paste in text mode ... you don't insert one time N chars but N times 1 char ... )

@fxbois fxbois closed this as completed Oct 8, 2012
@echosa
Copy link
Author

echosa commented Oct 9, 2012

Ok, thanks. I wonder why this was set by default in my GUI Emacs but not CLI...

@fxbois
Copy link
Owner

fxbois commented Oct 9, 2012

the related code :

(defcustom web-mode-autocompletes-flag (display-graphic-p)
"Handle autocompletes."
:type 'bool
:group 'web-mode)

web-mode-autocompletes-flag is only setted when emacs is runned with a graphic ui

@echosa
Copy link
Author

echosa commented Oct 9, 2012

That would definitely be it. Its working fine in CLI for me at the moment, after setting that flag. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants