unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Hello / First contribution / Major Mode menu entries
@ 2013-10-01 20:48 j.anthony
  0 siblings, 0 replies; 6+ messages in thread
From: j.anthony @ 2013-10-01 20:48 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 667 bytes --]

Hey there, guys.

I'm interested in taking care of a bunch of the little TODO items in
etc/TODO. I've read etc/CONTRIBUTE and understand that there are
special considerations when contributing to emacs and other FSF
projects. I thought I'd start by handling the major mode menu items
mentioned on line 65 of etc/TODO. I thought I'd get some feedback
before I steam in and do a bunch, so I've attached a diff file of my
first attempt.

This is my first message to emacs-devel and I'm vaguely aware of the
fact that I may not be doing things correctly. I'd very much
appreciate any help/advice I could get.

Thanks in advance everyone and sorry for any silly mistakes!

[-- Attachment #1.2: Type: text/html, Size: 810 bytes --]

[-- Attachment #2: ja-patch-00001.patch --]
[-- Type: application/octet-stream, Size: 916 bytes --]

diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el
index d9ff04c..367a84a 100644
--- a/lisp/textmodes/text-mode.el
+++ b/lisp/textmodes/text-mode.el
@@ -192,4 +192,22 @@ The argument NLINES says how many lines to center."
 	   (setq nlines (1+ nlines))
 	   (forward-line -1)))))
 
+(easy-menu-define text-mode-menu text-mode-map
+  "Menu for Text mode."
+  '("Text Mode"
+    ["Center Line" center-line
+     :help "Center the current line"
+     :active t]
+    ["Center Lines" (lambda (n)
+                      (interactive "nNumber of lines to indent: ")
+                      (center-line n))
+     :help "Center several lines"
+     :active t]
+    ["Center Paragraph" center-paragraph
+     :help "Center the current paragraph"
+     :active t]
+    ["Center Region" center-region
+     :help "Center the selected region"
+     :active (region-active-p)]))
+
 ;;; text-mode.el ends here

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* Hello / First contribution / Major Mode menu entries
@ 2013-10-02  5:27 John Anthony
  2013-10-02 14:16 ` Xue Fuqiao
  0 siblings, 1 reply; 6+ messages in thread
From: John Anthony @ 2013-10-02  5:27 UTC (permalink / raw)
  To: emacs-devel

Hey there, guys.

I'm interested in taking care of a bunch of the little TODO items in
etc/TODO. I've read etc/CONTRIBUTE and understand that there are
special considerations when contributing to emacs and other FSF
projects. I thought I'd start by handling the major mode menu items
mentioned on line 65 of etc/TODO. I thought I'd get some feedback
before I steam in and do a bunch:


diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el
index d9ff04c..367a84a 100644
--- a/lisp/textmodes/text-mode.el
+++ b/lisp/textmodes/text-mode.el
@@ -192,4 +192,22 @@ The argument NLINES says how many lines to center."
       (setq nlines (1+ nlines))
       (forward-line -1)))))

+(easy-menu-define text-mode-menu text-mode-map
+  "Menu for Text mode."
+  '("Text Mode"
+    ["Center Line" center-line
+     :help "Center the current line"
+     :active t]
+    ["Center Lines" (lambda (n)
+              (interactive "nNumber of lines to indent: ")
+              (center-line n))
+     :help "Center several lines"
+     :active t]
+    ["Center Paragraph" center-paragraph
+     :help "Center the current paragraph"
+     :active t]
+    ["Center Region" center-region
+     :help "Center the selected region"
+     :active (region-active-p)]))
;;; text-mode.el ends here


When I post such patches to bug-gnu-emacs.org would I be better off
submitting a diff generated by bzr?

This is my first message to emacs-devel and I'm vaguely aware of the
fact that I may not be doing things correctly. I'd very much
appreciate any help/advice I could get.

Thanks in advance everyone!



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-03  3:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 20:48 Hello / First contribution / Major Mode menu entries j.anthony
  -- strict thread matches above, loose matches on Subject: below --
2013-10-02  5:27 John Anthony
2013-10-02 14:16 ` Xue Fuqiao
2013-10-03  0:04   ` John Anthony
2013-10-03  1:03     ` Stephen J. Turnbull
2013-10-03  3:38   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).