From: <and...@us...> - 2008-05-30 07:16:52
|
Revision: 8444 http://plplot.svn.sourceforge.net/plplot/?rev=8444&view=rev Author: andrewross Date: 2008-05-30 00:17:00 -0700 (Fri, 30 May 2008) Log Message: ----------- Brief instructions on using the cmake emacs mode. Added Paths: ----------- trunk/README.emacs Added: trunk/README.emacs =================================================================== --- trunk/README.emacs (rev 0) +++ trunk/README.emacs 2008-05-30 07:17:00 UTC (rev 8444) @@ -0,0 +1,48 @@ + +A cookbook for using the cmake mode with emacs +---------------------------------------------- + +There is a cmake mode available for emacs. On some systems (the latest +Debian unstable for instance) this may be automatically installed along +with cmake. If not, then the following cookbook should work. + +1) Get the cmake-mode.el file from the cmake site + http://www.cmake.org/CMakeDocs/cmake-mode.el . Note the current file + has a couple of lines from diff / patch in (starting with >>> or <<<) + which need removing. + +2) Install cmake-mode.el in a suitable location in your system / home + directory. + +3) Add the following to your .emacs file to automatically load cmake + mode for .cmake and CMakeLists.txt files. + +---- + +;-------------------- +; Enable CMake mode | +;-------------------- +(setq load-path (cons (expand-file-name "~/lib/site-lisp") load-path)) +(require 'cmake-mode) +(setq auto-mode-alist + (append '(("CMakeLists\\.txt\\'" . cmake-mode) + ("\\.cmake\\'" . cmake-mode)) + auto-mode-alist)) + +---- + + You will need to alter the directory path depending on where you + installed cmake-mode.el + +4) Check the file works by loading one of the plplot cmake files into + emacs. + +5) For my version of emacs this does not autoload all the helper + functions. Typing "M-x load-library cmake-mode" should fix this. + + The two most useful functions are + "M-x unscreamify-buffer" which will put all cmake commands into + lower case + "M-x indent-region" which will indent the selected region + correctly + Property changes on: trunk/README.emacs ___________________________________________________________________ Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |