使用Emacs进行Web开发? (PHP / MySQL的/ JavaScript的/ CSS / HTML [英] Using Emacs for Web Development? (Php/mysql/javascript/css/html

查看:287
本文介绍了使用Emacs进行Web开发? (PHP / MySQL的/ JavaScript的/ CSS / HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

X-在我决定学习一个真正的编辑器并开始使用emacs之前,我已经使用了各种各样的编辑器和理想的web开发(php,javascript,html,css)。我学习了所有的基础知识,使用入门工具包,使用缓冲区,窗口等实现。



我在两个月内抓住了。一个月前,我开始学习vim,我发现了很多插件来实现我想要的东西。我发现要在emacs中实现相同的效果(对于php / js / css / html编辑)。



这里是事物的列表我正在努力学习注意:当我编辑php / html / css / js时,这些事情是相关的。




  • 语法hightlighting(php / smarty )。 - php主要模式太旧了,它总是突出显示html / smarty里面的php代码错误。


  • 我喜欢ido模式,但我不能找到如何在预定义的目录中定义项目和模糊匹配文件


  • 我可以设置nerdtree插件来获取左侧的快速概述窗格,文件I正在处理vim。但是在emacs中配置速度栏和源代码浏览器是很困难的。


  • 上下文感知完成我真的不知道该怎么做。我已经看到类似于clojure模式的东西,它显示了消息区域中方法的定义。


  • 标签代:用excrebant-新新旗200 200 200 X- 200 200 X- 200 200:20045 -40 200 X-在vim中,很容易,我可以在光标下打开包含定义的文件。


  • 手动查找我想查找一个特定单词的手册光标不打开浏览器(在消息区域(微型缓冲区))。







我喜欢ido模式,并使用ido模式切换b / w文件,缓冲区,本地文件。



任何人都可以指向正确的方向?你使用emacs进行同样的编辑吗?你的工作流程是什么?

解决方案

nxthml-mode 是Web开发的最终模式。



您可以轻松地定义一个项目其VCS或.dir-locals.el与f ind-file-in-project



模糊匹配在ido中称为flex匹配。您可以通过以下方式启用它:

 (setq ido-enable-flex-matching t)

我从来没有对ctags有任何问题,手动查找是微不足道的实现...


I'm a Web developer. I had been using a variety of editors and ide-s for web development(php, javascript,html,css) six months before I decided to learn a true editor and started using emacs. I learned all the basics, used the starter kit, practiced using buffer, windows etc..

I got a grip in 2 months. A month ago I started learning about vim and I found a lot of plugins to achieve the things I want. I'm finding to achieve the same effect in emacs you have to do a lot(for php/js/css/html editing).

Here are the list of things I'm finding hard. Note: These things are related when I'm editing php/html/css/js.

  • syntax hightlighting(php/smarty). -- the php major mode is too old and it always highlights html/smarty inside the php code incorrectly.

  • I love ido-mode but i couldn't find how to define a project and fuzzy match files inside the predefined directory

  • I can setup nerdtree plugin to get a quick overview pane on the left with the files I'm working on with vim. But configuring speedbar and source code browser in emacs is bit difficult.

  • Context aware completion I really don't know how to do that. I have seen something like that in clojure mode where it shows the definition of a method in the messages area.

  • Tags-generation: The tags generated with excrebant-ctags does not always work with php. In vim it is easy I can open a file containing the definition right under the cursor.

  • Manual lookup I want to lookup the manual for a particular word under the cursor without opening the browser (in the messages area(mini-buffer)).


I love ido mode and switching b/w files in tramp,buffers,local files using ido-mode.

Can anyone point me in the right direction? Do you use emacs for same kind of editing I do? What is your work flow?.

解决方案

nxthml-mode is the ultimate mode for web development.

You can easily define a project in terms of its VCS or .dir-locals.el with find-file-in-project.

Fuzzy matching is called flex matching in ido. You can enable it with:

(setq ido-enable-flex-matching t)

I've never had any problems with ctags, manual lookup is trivial to implement...

这篇关于使用Emacs进行Web开发? (PHP / MySQL的/ JavaScript的/ CSS / HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆