Comments for credmp http://www.credmp.org Ramblings of a code junkie Tue, 20 Feb 2007 06:51:58 +0000 http://wordpress.org/?v=2.1 Comment on Ruby On Rails and Emacs by core http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-310 core Thu, 15 Feb 2007 18:29:52 +0000 http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-310 Alan, Thanks! I didn't know about comment-dwim, you learn something new every day eh? Alan,

Thanks! I didn’t know about comment-dwim, you learn something new every day eh?

]]>
Comment on Ruby On Rails and Emacs by core http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-309 core Thu, 15 Feb 2007 18:29:13 +0000 http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-309 David, Very cool, I will have to check it out some time... I personally like nxml mode for editing xhtml files and it has been a long time since I used psgml :S Arjen David,

Very cool, I will have to check it out some time… I personally like nxml mode for editing xhtml files and it has been a long time since I used psgml :S

Arjen

]]>
Comment on Ruby On Rails and Emacs by Alan Shutko http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-308 Alan Shutko Thu, 15 Feb 2007 17:34:15 +0000 http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-308 I use the following: (global-set-key "\C-c;" 'comment-dwim) That gives you one keystroke... select a region and hit it to comment the region, hit it again to uncomment. I use the following:

(global-set-key “\C-c;” ‘comment-dwim)

That gives you one keystroke… select a region and hit it to comment the region, hit it again to uncomment.

]]>
Comment on Ruby On Rails and Emacs by David N. Welton http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-307 David N. Welton Thu, 15 Feb 2007 13:57:12 +0000 http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-307 I created an .rhtml minor mode that works pretty well for my needs: http://journal.dedasys.com/articles/2006/07/02/rhtml-minor-mode I created an .rhtml minor mode that works pretty well for my needs:

http://journal.dedasys.com/articles/2006/07/02/rhtml-minor-mode

]]>
Comment on Ruby On Rails and Emacs by core http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-243 core Thu, 25 Jan 2007 18:44:06 +0000 http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-243 Sam, Commenting and uncommenting multiple lines can be done with M-x comment-region and M-x uncomment-region, they are not bound by default, but you can change keyboard shortcuts like this (example defines global key combinations) <pre> (global-set-key "\C-co" 'occur) </pre> This sets 'Ctrl-c o' to the function occur. Emacs comes with a great manual which is available by pressing 'C-h i' and then going to the Emacs node. There is also a great wiki (http://www.emacswiki.org) which has a lot of information on how to do things with Emacs :) Sam,

Commenting and uncommenting multiple lines can be done with M-x comment-region and M-x uncomment-region, they are not bound by default, but you can change keyboard shortcuts like this (example defines global key combinations)

(global-set-key "C-co" 'occur)

This sets ‘Ctrl-c o’ to the function occur.

Emacs comes with a great manual which is available by pressing ‘C-h i’ and then going to the Emacs node. There is also a great wiki (http://www.emacswiki.org) which has a lot of information on how to do things with Emacs :)

]]>
Comment on Ruby On Rails and Emacs by sam http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-242 sam Thu, 25 Jan 2007 01:41:22 +0000 http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-242 could you also mention how to edit the shortcuts in emacs? Like for example, to add shortcuts for the javascript and css helpers, or to change the syntax to use Haml? thanks! could you also mention how to edit the shortcuts in emacs? Like for example, to add shortcuts for the javascript and css helpers, or to change the syntax to use Haml?

thanks!

]]>
Comment on Ruby On Rails and Emacs by sam http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-238 sam Tue, 23 Jan 2007 01:06:42 +0000 http://www.credmp.org/index.php/2006/11/28/ruby-on-rails-and-emacs/#comment-238 great stuff! How could you comment out several lines at a time.. any shortcuts? thanks great stuff! How could you comment out several lines at a time.. any shortcuts? thanks

]]>
Comment on Antlr Java Syntax by core http://www.credmp.org/index.php/antlr-java-syntax/#comment-143 core Sat, 06 Jan 2007 09:16:23 +0000 http://www.credmp.org/index.php/antlr-java-syntax/#comment-143 Hitesh, Can you post a piece of sample code you use for this issue? Thanks Arjen Hitesh,

Can you post a piece of sample code you use for this issue?

Thanks

Arjen

]]>
Comment on Creating webapps with Maven by Steve Lewis http://www.credmp.org/index.php/2006/11/19/creating-webapps-with-maven/#comment-141 Steve Lewis Sat, 06 Jan 2007 06:54:55 +0000 http://www.credmp.org/index.php/2006/11/19/creating-webapps-with-maven/#comment-141 Accurate, and succinct. I love it. One thing that you neglected to point out, but might be valuable to mention is that with the webbapp archetype, you have to create a few more directories yourself if you are doing anything more than a "hello world" jsp. The template creates a structure like this: /src /main /resources /webapp /WEB-INF web.xml you will want to create the directories for the path: /src/main/java/ and within there create your package directories, which should probably correspond with your groupId (the one you used during the <em>mvn archetype:create</em> operation) Accurate, and succinct. I love it.

One thing that you neglected to point out, but might be valuable to mention is that with the webbapp archetype, you have to create a few more directories yourself if you are doing anything more than a “hello world” jsp.

The template creates a structure like this:

/src
/main
/resources
/webapp
/WEB-INF
web.xml

you will want to create the directories for the path:

/src/main/java/

and within there create your package directories, which should probably correspond with your groupId (the one you used during the mvn archetype:create operation)

]]>
Comment on Antlr Java Syntax by Hitesh http://www.credmp.org/index.php/antlr-java-syntax/#comment-129 Hitesh Wed, 27 Dec 2006 12:41:42 +0000 http://www.credmp.org/index.php/antlr-java-syntax/#comment-129 Hi Core, just got the grammar for java1.5 from the link specified. Thanks a lot !!. But I am unable to generate a AST from that. Can u just tell wat to do. My main method has getAST() (collection.AST.* is imported) , still unable to resolve the symbol.. Pls help Hi Core, just got the grammar for java1.5 from the link specified. Thanks a lot !!. But I am unable to generate a AST from that. Can u just tell wat to do. My main method has getAST() (collection.AST.* is imported) , still unable to resolve the symbol.. Pls help

]]>