开发者

How do I add functions to Zencoding-mode.el to make a - <a> tag - unfold to <a href=" " target=" ">?

开发者 https://www.devze.com 2022-12-22 06:26 出处:网络
I would like to learn how to add functions to zencoding-mode.e开发者_如何学JAVAl (Zen Coding).

I would like to learn how to add functions to zencoding-mode.e开发者_如何学JAVAl (Zen Coding). Please list what steps a new Emacs user will need to take to enable them to learn Emacs Lisp.

I would love to help extend this Emacs mode.


It rather looks to me as if the Zen Coding mode is not what you want to be modifying to do this. From a quick look over the code, it doesn't seem like it has any per-tag rules at all beyond categorising the ones it recognises into either 'single', 'inline', or 'block' tags.

You could clearly write a.href.target to get the desired effect, but I don't think the Zen Coding mode is geared to do any automated expansions besides the ones you explicitly specify.

However, it also seems to have some integration with YASnippet, which most definitely is suited to the task. If the Zen Coding mode already does similar things to what you are asking, I would guess that it may actually be YASnippet at work.

As for learning Emacs Lisp, I would redirect you to this question:
https://stackoverflow.com/questions/41522/tips-for-learning-elisp

0

精彩评论

暂无评论...
验证码 换一张
取 消