Difference between revisions of "Template:NewPage"

From WikEmacs
Jump to: navigation, search
(rvv)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''c-mode''' is the default [[major mode]] for editing [[C]] source files
+
'''{{{1}}}''' is a wonderful mode which does wonderful things.
({{File|.c}} and {{File|.h}} files). It uses {{ModeLink|cc-mode}}.
+
  
 
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------>
 
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------>
 +
<!-----YOU CAN DELETE STUFF THAT ARE USELESS IN THE FINAL PAGE YOU ARE WRITING ------->
 
<!-----FEW MONTHS, YEARS FROM WE CAN DELETE STUFF. NOT NOW ------------------>
 
<!-----FEW MONTHS, YEARS FROM WE CAN DELETE STUFF. NOT NOW ------------------>
 
<!-----YOU DON"T WANT WIKEMACS TO BE ANOTHER EMACSWIKI RIGHT ------------------>
 
<!-----YOU DON"T WANT WIKEMACS TO BE ANOTHER EMACSWIKI RIGHT ------------------>
 
<!-----PLEASE BE PATIENT AND CO-OPERATE FOR GREATER GOOD ------------------>
 
<!-----PLEASE BE PATIENT AND CO-OPERATE FOR GREATER GOOD ------------------>
 
 
  
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= Basic setup =
+
== Basic setup ==
  
c-mode is bundled with Emacs by default. No additional setup is required.  
+
Install these third party libraries or read this section before proceeding.
  
= Helpful keybindings =
+
== Helpful keybindings ==
  
; {{Keys|C-M-a}}
+
; {{Keys|C-x C-c}}
: Go to the beginning of the current function. If you are between 2 functions, go the start of the previous one.
+
: Quit Emacs.
  
; {{Keys|C-M-e}}
+
; {{CommandKeys|C-x C-s|save-buffer}}
: Go to the end of the current function. If you are between 2 functions, go to the end of the next one.  
+
: Save buffer.
  
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
= Common Customization =
+
== Common Customization ==
 
<!-- Customization common to all platforms goes here -->
 
<!-- Customization common to all platforms goes here -->
  
== Change default indenting style ==
+
=== Customization 1 ===
 
<source lang="lisp">
 
<source lang="lisp">
; set k&r style
+
(message "This stuff will go in your .emacs")
(setq c-set-style "k&r")
+
; indent with 4 spaces
+
(setq c-basic-offset 4)
+
 
</source>
 
</source>
  
Line 38: Line 33:
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= [[GNU/Linux]] =
+
== [[GNU/Linux]] ==
 
<!-- Customization/Notes specific to GNU/Linux goes here -->
 
<!-- Customization/Notes specific to GNU/Linux goes here -->
  
Line 44: Line 39:
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= [[OS X]] =
+
== [[OS X]] ==
 
<!-- Customization/Notes specific to OS X goes here -->
 
<!-- Customization/Notes specific to OS X goes here -->
  
Line 50: Line 45:
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= [[Windows]] =
+
== [[Windows]] ==
 
<!-- Customization/Notes specific to Windows goes here -->
 
<!-- Customization/Notes specific to Windows goes here -->
  
Line 57: Line 52:
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= [[Emacs-24]] =
+
== [[Emacs-24]] ==
 
<!-- Customization/Notes specific to Emacs-24 -->
 
<!-- Customization/Notes specific to Emacs-24 -->
 
<!-- Recent revision should come first. This way important information stays at top  -->
 
<!-- Recent revision should come first. This way important information stays at top  -->
Line 65: Line 60:
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= [[Emacs-23]] =
+
== [[Emacs-23]] ==
 
<!-- Customization/Notes specific to Emacs-22 -->
 
<!-- Customization/Notes specific to Emacs-22 -->
 
+
Emacs-23 is not as great as Emacs-24. You will have these problems and you can workaround it this way.
  
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= Recommended Reading =
+
== Recommended Reading ==
 
<!-- Only internal links. DO NOT insert EXTERNAL LINKS -->
 
<!-- Only internal links. DO NOT insert EXTERNAL LINKS -->
 +
* [[Internal Link1]]
 +
* [[Internal Link2]]
  
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= Project Pages =
+
== Project Pages ==
* [http://cc-mode.sourceforge.net/ cc-mode]
+
* [http://bazaar.canonical.com/en/ Bazaar]
 +
* [http://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html Bzr Users Guide]
  
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
  
= Tutorial Pages =
+
== Tutorial Pages ==
<!-- ;[http://wiki.bazaar.canonical.com/EmacsTips Emacs as commit message editor]  -->
+
;[http://wiki.bazaar.canonical.com/EmacsTips Emacs as commit message editor]   
<!-- :Tips for setting up Emacs as Bazaar commit editor. -->
+
:Tips for setting up Emacs as Bazaar commit editor.
  
 
<!------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------->
<!-- Add categories based on user-level (beginner etc), user-role (programming, emacs contributor etc), platform (windows, linux etc) or work flow (text editing, document authoring etc) -->
+
<!-- Add categories based on user-level (beginner etc), user-role (programming, emacs contributor etc), platform (windows, linux etc), work flow (text editing, document authoring etc) or package type (built-in or third party) -->
 +
 
 +
[[Category:TestCategory1]][[Category:TestCategory2]]
  
[[Category:Programming]]
+
<!-- When copying this template, ignore everything below here! -->
 +
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 16:00, 22 June 2012

{{{1}}} is a wonderful mode which does wonderful things.


Basic setup[edit]

Install these third party libraries or read this section before proceeding.

Helpful keybindings[edit]

[C-x C-c]
Quit Emacs.
[C-x C-s] (or M-x save-buffer)
Save buffer.

Common Customization[edit]

Customization 1[edit]

(message "This stuff will go in your .emacs")


GNU/Linux[edit]

OS X[edit]

Windows[edit]

Emacs-24[edit]

Emacs-23[edit]

Emacs-23 is not as great as Emacs-24. You will have these problems and you can workaround it this way.


Recommended Reading[edit]


Project Pages[edit]


Tutorial Pages[edit]

Emacs as commit message editor
Tips for setting up Emacs as Bazaar commit editor.