https://wikemacs.org/api.php?action=feedcontributions&user=93.159.251.130&feedformat=atomWikEmacs - User contributions [en]2024-03-29T11:48:34ZUser contributionsMediaWiki 1.35.14https://wikemacs.org/index.php?title=Auto-complete-mode&diff=3065Auto-complete-mode2012-07-06T11:03:42Z<p>93.159.251.130: Undo revision 2929 by 151.25.47.98 (talk)</p>
<hr />
<div>{{Package<br />
|name=auto-complete-mode<br />
|description=auto-completion library<br />
|author=Tomohiro Matsuyama<br />
|maintainer=Tomohiro Matsuyama<br />
|source= http://github.com/m2ym/auto-complete<br />
}}<br />
<br />
'''auto-complete-mode''' is the most intelligent auto-completion extension for GNU Emacs. Auto Complete Mode renews an old completion interface and provides an environment that makes users could be more concentrate on their own works.<br />
<br />
[[File:ac.png|right|auto-complete-mode]]<br />
<br />
== Basic setup ==<br />
<br />
<source lang="lisp"><br />
(add-to-list 'load-path "~/.emacs.d") ; This may not be appeared if you have already added.<br />
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")<br />
(require 'auto-complete-config)<br />
(ac-config-default)<br />
</source><br />
<br />
== Helpful keybindings ==<br />
<br />
== Common Customization ==<br />
<br />
== See Also ==<br />
<br />
* [[Helm]]<br />
* [[Ido]]<br />
<br />
== Project Pages ==<br />
* [http://cx4a.org/software/auto-complete/ Official Site]<br />
* [http://cx4a.org/software/auto-complete/manual.html Official Manual]<br />
<br />
== Tutorial Pages ==<br />
<br />
[[Category:Project Management]][[Category:Convenience]][[Category:Third Party Package]]</div>93.159.251.130https://wikemacs.org/index.php?title=C-mode&diff=2759C-mode2012-04-20T11:27:10Z<p>93.159.251.130: moved all markup to CC-mode and added redirection</p>
<hr />
<div>#REDIRECT [[CC-mode]]</div>93.159.251.130https://wikemacs.org/index.php?title=CC-mode&diff=2758CC-mode2012-04-20T11:27:06Z<p>93.159.251.130: Inserted all markup from article C-mode</p>
<hr />
<div>{{Infobox major-mode<br />
|title = C<br />
|library = cc-mode<br />
|command = c-mode<br />
|builtin = yes<br />
|auto activates = *.c *.h *.xbm *.xpm *.y *.yacc *.lex *.i *.m<br />
}}<br />
<br />
'''c-mode''' is the default [[major mode]] for editing [[C]] source files. It's major features are customizable indentation and font-locking (coloring of code). <br />
<br />
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------><br />
<!-----FEW MONTHS, YEARS FROM NOW, MAYBE WE CAN DELETE STUFF. NOT NOW ------------------><br />
<!-----YOU DON"T WANT WIKEMACS TO BE ANOTHER EMACSWIKI RIGHT ------------------><br />
<!-----PLEASE BE PATIENT AND CO-OPERATE FOR GREATER GOOD ------------------><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Basic setup =<br />
<br />
c-mode is bundled with Emacs by default. No additional setup is required. <br />
<br />
= Helpful keybindings =<br />
<br />
; {{Keys|C-M-a}}<br />
: Go to the beginning of the current function. If you are between 2 functions, go the start of the previous one.<br />
<br />
; {{Keys|C-M-e}}<br />
: Go to the end of the current function. If you are between 2 functions, go to the end of the next one. <br />
<br />
; {{Keys|C-M-h}}<br />
: Mark current function<br />
<br />
; {{Keys|M-a}}<br />
: Go to beginning of current statement (or next one).<br />
<br />
; {{Keys|M-e}}<br />
: Go to end of current statement (or previous one).<br />
<!-------------------------------------------------------------------------><br />
<br />
= Common Customization =<br />
<!-- Customization common to all platforms goes here --><br />
<br />
== Style ==<br />
Any mode based on {{ModeLink|cc-mode}} provides automatic indentation. The default style is <code>gnu</code>. It is the one recommended by the Free Software Foundation for GNU projects but you can use a different one.<br />
<br />
Here is a basic list of predefined styles:<br />
; <code>gnu</code><br />
: The default style for GNU projects<br />
; <code>k&r</code><br />
: What Kernighan and Ritchie, the authors of C used in their book<br />
; <code>bsd</code><br />
: What BSD developers use, aka “Allman style” after Eric Allman.<br />
; <code>whitesmith</code><br />
: Popularized by the examples that came with Whitesmiths C, an early commercial C compiler.<br />
; <code>stroustrup</code><br />
: What Stroustrup, the author of C++ used in his book<br />
; <code>ellemtel</code><br />
: Popular C++ coding standards as defined by “Programming in C++, Rules and Recommendations,” Erik Nyquist and Mats Henricson, Ellemtel<br />
; <code>linux</code><br />
: What the Linux developers use for kernel development<br />
; <code>python</code><br />
: What Python developers use for extension modules<br />
; <code>java</code><br />
: The default style for java-mode (see below)<br />
; <code>user</code><br />
: When you want to define your own style<br />
<br />
You can look the [http://cc-mode.sourceforge.net/html-manual/Built_002din-Styles.html#Built_002din-Styles cc-mode documentation] for a complete list of builtin style.<br />
For visual example of each style you can look the [http://en.wikipedia.org/wiki/Indent_style Wikipedia article on indenting style].<br />
<br />
* The default style is set via the variable {{Variable|c-default-style}}<br />
* Use {{CommandKeys|C-c .|c-set-style}} to change the indentation style of the current buffer.<br />
* The amount of space use to indent is set via the variable {{Variable|c-basic-offset}}.<br />
<br />
To set the default style to K&R and use 4 spaces, add this to your {{EmacsConfigFile}}:<br />
<br />
<source lang="lisp"><br />
; set k&r style<br />
(setq c-default-style "k&r")<br />
; indent with 4 spaces<br />
(setq c-basic-offset 4)<br />
</source><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[GNU/Linux]] =<br />
<!-- Customization/Notes specific to GNU/Linux goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[OS X]] =<br />
<!-- Customization/Notes specific to OS X goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Windows]] =<br />
<!-- Customization/Notes specific to Windows goes here --><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Emacs-24]] =<br />
<!-- Customization/Notes specific to Emacs-24 --><br />
<!-- Recent revision should come first. This way important information stays at top --><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Emacs-23]] =<br />
<!-- Customization/Notes specific to Emacs-22 --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Recommended Reading =<br />
<!-- Only internal links. DO NOT insert EXTERNAL LINKS --><br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Project Pages =<br />
* [http://cc-mode.sourceforge.net/ cc-mode]<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Tutorial Pages =<br />
<!-- ;[http://wiki.bazaar.canonical.com/EmacsTips Emacs as commit message editor] --><br />
<!-- :Tips for setting up Emacs as Bazaar commit editor. --><br />
<br />
<!-------------------------------------------------------------------------><br />
<!-- 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) --><br />
<br />
Nice visual preview of different cc mode styles: http://davidha.wordpress.com/2009/05/15/emacs-cc-modes-built-in-styles-gallery/<br />
<br />
[[Category:Programming]]</div>93.159.251.130https://wikemacs.org/index.php?title=C-mode&diff=2689C-mode2012-04-18T09:22:40Z<p>93.159.251.130: /* Tutorial Pages */</p>
<hr />
<div>{{Infobox major-mode<br />
|title = C<br />
|library = cc-mode<br />
|command = c-mode<br />
|builtin = yes<br />
|auto activates = *.c *.h *.xbm *.xpm *.y *.yacc *.lex *.i *.m<br />
}}<br />
<br />
'''c-mode''' is the default [[major mode]] for editing [[C]] source files. It's major features are customizable indentation and font-locking (coloring of code). <br />
<br />
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------><br />
<!-----FEW MONTHS, YEARS FROM NOW, MAYBE WE CAN DELETE STUFF. NOT NOW ------------------><br />
<!-----YOU DON"T WANT WIKEMACS TO BE ANOTHER EMACSWIKI RIGHT ------------------><br />
<!-----PLEASE BE PATIENT AND CO-OPERATE FOR GREATER GOOD ------------------><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Basic setup =<br />
<br />
c-mode is bundled with Emacs by default. No additional setup is required. <br />
<br />
= Helpful keybindings =<br />
<br />
; {{Keys|C-M-a}}<br />
: Go to the beginning of the current function. If you are between 2 functions, go the start of the previous one.<br />
<br />
; {{Keys|C-M-e}}<br />
: Go to the end of the current function. If you are between 2 functions, go to the end of the next one. <br />
<br />
; {{Keys|C-M-h}}<br />
: Mark current function<br />
<br />
; {{Keys|M-a}}<br />
: Go to beginning of current statement (or next one).<br />
<br />
; {{Keys|M-e}}<br />
: Go to end of current statement (or previous one).<br />
<!-------------------------------------------------------------------------><br />
<br />
= Common Customization =<br />
<!-- Customization common to all platforms goes here --><br />
<br />
== Style ==<br />
Any mode based on {{ModeLink|cc-mode}} provides automatic indentation. The default style is <code>gnu</code>. It is the one recommended by the Free Software Foundation for GNU projects but you can use a different one.<br />
<br />
Here is a basic list of predefined styles:<br />
; <code>gnu</code><br />
: The default style for GNU projects<br />
; <code>k&r</code><br />
: What Kernighan and Ritchie, the authors of C used in their book<br />
; <code>bsd</code><br />
: What BSD developers use, aka “Allman style” after Eric Allman.<br />
; <code>whitesmith</code><br />
: Popularized by the examples that came with Whitesmiths C, an early commercial C compiler.<br />
; <code>stroustrup</code><br />
: What Stroustrup, the author of C++ used in his book<br />
; <code>ellemtel</code><br />
: Popular C++ coding standards as defined by “Programming in C++, Rules and Recommendations,” Erik Nyquist and Mats Henricson, Ellemtel<br />
; <code>linux</code><br />
: What the Linux developers use for kernel development<br />
; <code>python</code><br />
: What Python developers use for extension modules<br />
; <code>java</code><br />
: The default style for java-mode (see below)<br />
; <code>user</code><br />
: When you want to define your own style<br />
<br />
You can look the [http://cc-mode.sourceforge.net/html-manual/Built_002din-Styles.html#Built_002din-Styles cc-mode documentation] for a complete list of builtin style.<br />
For visual example of each style you can look the [http://en.wikipedia.org/wiki/Indent_style Wikipedia article on indenting style].<br />
<br />
* The default style is set via the variable {{Variable|c-default-style}}<br />
* Use {{CommandKeys|C-c .|c-set-style}} to change the indentation style of the current buffer.<br />
* The amount of space use to indent is set via the variable {{Variable|c-basic-offset}}.<br />
<br />
To set the default style to K&R and use 4 spaces, add this to your {{EmacsConfigFile}}:<br />
<br />
<source lang="lisp"><br />
; set k&r style<br />
(setq c-default-style "k&r")<br />
; indent with 4 spaces<br />
(setq c-basic-offset 4)<br />
</source><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[GNU/Linux]] =<br />
<!-- Customization/Notes specific to GNU/Linux goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[OS X]] =<br />
<!-- Customization/Notes specific to OS X goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Windows]] =<br />
<!-- Customization/Notes specific to Windows goes here --><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Emacs-24]] =<br />
<!-- Customization/Notes specific to Emacs-24 --><br />
<!-- Recent revision should come first. This way important information stays at top --><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Emacs-23]] =<br />
<!-- Customization/Notes specific to Emacs-22 --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Recommended Reading =<br />
<!-- Only internal links. DO NOT insert EXTERNAL LINKS --><br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Project Pages =<br />
* [http://cc-mode.sourceforge.net/ cc-mode]<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Tutorial Pages =<br />
<!-- ;[http://wiki.bazaar.canonical.com/EmacsTips Emacs as commit message editor] --><br />
<!-- :Tips for setting up Emacs as Bazaar commit editor. --><br />
<br />
<!-------------------------------------------------------------------------><br />
<!-- 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) --><br />
<br />
Nice visual preview of different cc mode styles: http://davidha.wordpress.com/2009/05/15/emacs-cc-modes-built-in-styles-gallery/<br />
<br />
[[Category:Programming]]</div>93.159.251.130https://wikemacs.org/index.php?title=Talk:C-mode&diff=2688Talk:C-mode2012-04-18T09:21:03Z<p>93.159.251.130: Created page with "Is this mode really called c-mode - or as the homepage suggests - CC Mode? (matt)"</p>
<hr />
<div>Is this mode really called c-mode - or as the homepage suggests - CC Mode? (matt)</div>93.159.251.130https://wikemacs.org/index.php?title=C-mode&diff=2687C-mode2012-04-18T09:18:36Z<p>93.159.251.130: </p>
<hr />
<div>{{Infobox major-mode<br />
|title = C<br />
|library = cc-mode<br />
|command = c-mode<br />
|builtin = yes<br />
|auto activates = *.c *.h *.xbm *.xpm *.y *.yacc *.lex *.i *.m<br />
}}<br />
<br />
'''c-mode''' is the default [[major mode]] for editing [[C]] source files. It's major features are customizable indentation and font-locking (coloring of code). <br />
<br />
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------><br />
<!-----FEW MONTHS, YEARS FROM NOW, MAYBE WE CAN DELETE STUFF. NOT NOW ------------------><br />
<!-----YOU DON"T WANT WIKEMACS TO BE ANOTHER EMACSWIKI RIGHT ------------------><br />
<!-----PLEASE BE PATIENT AND CO-OPERATE FOR GREATER GOOD ------------------><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Basic setup =<br />
<br />
c-mode is bundled with Emacs by default. No additional setup is required. <br />
<br />
= Helpful keybindings =<br />
<br />
; {{Keys|C-M-a}}<br />
: Go to the beginning of the current function. If you are between 2 functions, go the start of the previous one.<br />
<br />
; {{Keys|C-M-e}}<br />
: Go to the end of the current function. If you are between 2 functions, go to the end of the next one. <br />
<br />
; {{Keys|C-M-h}}<br />
: Mark current function<br />
<br />
; {{Keys|M-a}}<br />
: Go to beginning of current statement (or next one).<br />
<br />
; {{Keys|M-e}}<br />
: Go to end of current statement (or previous one).<br />
<!-------------------------------------------------------------------------><br />
<br />
= Common Customization =<br />
<!-- Customization common to all platforms goes here --><br />
<br />
== Style ==<br />
Any mode based on {{ModeLink|cc-mode}} provides automatic indentation. The default style is <code>gnu</code>. It is the one recommended by the Free Software Foundation for GNU projects but you can use a different one.<br />
<br />
Here is a basic list of predefined styles:<br />
; <code>gnu</code><br />
: The default style for GNU projects<br />
; <code>k&r</code><br />
: What Kernighan and Ritchie, the authors of C used in their book<br />
; <code>bsd</code><br />
: What BSD developers use, aka “Allman style” after Eric Allman.<br />
; <code>whitesmith</code><br />
: Popularized by the examples that came with Whitesmiths C, an early commercial C compiler.<br />
; <code>stroustrup</code><br />
: What Stroustrup, the author of C++ used in his book<br />
; <code>ellemtel</code><br />
: Popular C++ coding standards as defined by “Programming in C++, Rules and Recommendations,” Erik Nyquist and Mats Henricson, Ellemtel<br />
; <code>linux</code><br />
: What the Linux developers use for kernel development<br />
; <code>python</code><br />
: What Python developers use for extension modules<br />
; <code>java</code><br />
: The default style for java-mode (see below)<br />
; <code>user</code><br />
: When you want to define your own style<br />
<br />
You can look the [http://cc-mode.sourceforge.net/html-manual/Built_002din-Styles.html#Built_002din-Styles cc-mode documentation] for a complete list of builtin style.<br />
For visual example of each style you can look the [http://en.wikipedia.org/wiki/Indent_style Wikipedia article on indenting style].<br />
<br />
* The default style is set via the variable {{Variable|c-default-style}}<br />
* Use {{CommandKeys|C-c .|c-set-style}} to change the indentation style of the current buffer.<br />
* The amount of space use to indent is set via the variable {{Variable|c-basic-offset}}.<br />
<br />
To set the default style to K&R and use 4 spaces, add this to your {{EmacsConfigFile}}:<br />
<br />
<source lang="lisp"><br />
; set k&r style<br />
(setq c-default-style "k&r")<br />
; indent with 4 spaces<br />
(setq c-basic-offset 4)<br />
</source><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[GNU/Linux]] =<br />
<!-- Customization/Notes specific to GNU/Linux goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[OS X]] =<br />
<!-- Customization/Notes specific to OS X goes here --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Windows]] =<br />
<!-- Customization/Notes specific to Windows goes here --><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Emacs-24]] =<br />
<!-- Customization/Notes specific to Emacs-24 --><br />
<!-- Recent revision should come first. This way important information stays at top --><br />
<br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= [[Emacs-23]] =<br />
<!-- Customization/Notes specific to Emacs-22 --><br />
<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Recommended Reading =<br />
<!-- Only internal links. DO NOT insert EXTERNAL LINKS --><br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Project Pages =<br />
* [http://cc-mode.sourceforge.net/ cc-mode]<br />
<br />
<!-------------------------------------------------------------------------><br />
<br />
= Tutorial Pages =<br />
<!-- ;[http://wiki.bazaar.canonical.com/EmacsTips Emacs as commit message editor] --><br />
<!-- :Tips for setting up Emacs as Bazaar commit editor. --><br />
<br />
<!-------------------------------------------------------------------------><br />
<!-- 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) --><br />
<br />
[[Category:Programming]]</div>93.159.251.130https://wikemacs.org/index.php?title=GPL&diff=2656GPL2012-04-11T09:59:54Z<p>93.159.251.130: /* GPL in a nutshell */</p>
<hr />
<div>License of [[GNU Emacs]].<br />
<br />
== GPL in a nutshell ==<br />
* Someone (called A) creates a recipe of beer and publishes it under the terms of the GPL<br />
* here is what another guy (called B) can (and/or has to) do<br />
** B can make beer, made with this recipe<br />
** B can make money by selling beer made with the recipe<br />
** B can improve the recipe, and publish it<br />
** B can tell the recipe to others<br />
** B can improve the recipe, but must publish it under the terms of the GPL<br />
** when someone (called C) asks B, what the original recipe is, B has to tell him<br />
** when C asks B, what the '''improved''' recipe is, B has to tell him<br />
* in one sentence, when A creates a recipe of beer, publishes it under the terms of the GPL, recipe and improved recipes will be publicly accessable forever, and anyone can make money by making and selling the beer and/or distributing the recipe.<br />
<br />
[[Category:Licenses]] [[Category:GNU]]</div>93.159.251.130https://wikemacs.org/index.php?title=File_talk:Emacs-explanation.png&diff=2643File talk:Emacs-explanation.png2012-04-10T10:47:09Z<p>93.159.251.130: </p>
<hr />
<div>This looks cool, way better than the one I uploaded. Thank you -- [[User:Kindahero|Kindahero]] 21:22, 5 April 2012 (EEST)<br />
<br />
In terms of beeing up to date. Would it not be usefull to clarify also about overlay and tooltip? These terms are also emacs-specific.</div>93.159.251.130