From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rusi Newsgroups: gmane.emacs.help Subject: Re: Emacs for writers (was Emacs users a dying breed?) Date: Tue, 26 Jun 2012 20:41:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: <58279e46-1758-44bd-bf74-b805db8af68c@re8g2000pbc.googlegroups.com> References: <9809cd1a-9086-4022-af79-732fb6149f20@q5g2000pba.googlegroups.com> <87mx3vzqd7.fsf@friendface.i-did-not-set--mail-host-address--so-tickle-me> <87ipejip09.fsf@gnu.org> <4FE453F0.8040304@easy-emacs.de> <7d431a11-f7fb-42b3-9fe3-4b27d3e41771@g4g2000pbn.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340768715 32431 80.91.229.3 (27 Jun 2012 03:45:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 03:45:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 05:45:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjjBo-0008BH-C3 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 05:45:12 +0200 Original-Received: from localhost ([::1]:58386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjjBo-0004AG-3g for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 23:45:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!re8g2000pbc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 165 Original-NNTP-Posting-Host: 116.74.128.208 Original-X-Trace: posting.google.com 1340768604 2624 127.0.0.1 (27 Jun 2012 03:43:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 27 Jun 2012 03:43:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: re8g2000pbc.googlegroups.com; posting-host=116.74.128.208; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:193108 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85502 Archived-At: On Jun 27, 2:47=A0am, James Freer wrote: > On 25 June 2012 10:38, James Freer wrote: > > > > > > > > > > > On 25 June 2012 03:58, rusi wrote: > >> On Jun 25, 4:19=A0am, James Freer wrote: > >> > >>> What do i use at present while i'm still trying to get used to vim or > >>> emacs - pico for email and bluefish. Both vim and emacs development > >>> have gone down strange routes and yet both are popular. > > >>> james > > >> Ok James lets see if we can get you off the ground with emacs. > >> To start with are you on linux? If not whats your OS? > >> Next whats your emacs version? To find out do M-x emacs-version RETURN > >> where M-x is emacs-funnyspeak for Alt-x or Escape-x. > >> Next whats in your init file? Beginners are usually recommended to > >> use .emacs (note the .) > >> I recommend .emacs.d/init.el > >> If all this is trivial to you please excuse; no intent to be > >> patronizing here; just dont know at what level you are stuck > > > Rusi > > > I really appreciate your reply and offer of help. At present i've got > > to get a car sorted out so i'll leave it for a couple of days and then > > i can be focussed and look these things up. > > > thanks > > james > > Hi Rusi > > Finally got the domestic side under control. I look after my mother > with Alzheimer's so i needed to get the car sorted to get her > medication. The head gasket had gone and on these cars you've got to > take the engine out... which involves quite a bit of work. O my! > > On to emacs. > > IT experience: used to do some programming in the 90's and used > wordstar for editing but have an engineering degree not computing. > Ideal choice for me would be to use Joe or E3 editors but they don't > do bookmarks so i was thinking of Vim or emacs. Been using linux > ubuntu for about 4 years and about 18 months ago changed to xubuntu... > just like the minimal approach switching before Unity came along. Have > tried other distros but prefer apt package management. I know my way > around xubuntu fairly well although i'm not as technical as a > programmer - couldn't call myself a ' geek'. Geek enough to have an intelligible and intelligent conversation > > OS: currently using xubuntu 10.04 with emacs 23 installed although i'm > just about to install =A012.04 on a new pc which will have emacs 24. I'm > hoping to set things up before i switch over to the new pc. > > config files: .emac, .emac.d [i know about hidden files but there are > just comments in these both are bare]..emac.d appears to have an > 'auto-save' directory and nothing there. I guess you are misspelling these? Should be .emacs and .emacs.d/ init.el If the first is useless throw it out (ie rm .emacs) If you have something useful there 'mv' it to the second. Once thats done make sure its 'reached.' I do that by making an obvious syntax error -- eg a single opening '(' without closing ')' and make sure you get a lisp syntax error on starting emacs. [Usually this just works on linux and gives all kinds of hell on windows] There are many different things to set up specifically for your needs -- many of them I dont know about. For now lets use one example -- wordwrap/linebreak -- to understand the workflow. In emacs there are two commands longlines-mode and visual-line-mode for this. To try these do M-x (I guess you know M-x is Alt-x) longlines-modeRET Start playing with tab-expansion: type longTAB and see it expand etc You turn it off by running the same command again. Try both; the current fashion is visual-line-mode but it does not seem t respect fill-column as longlines does. Play around with both and decide which you like. Now comes the next stage -- getting it into your standard config -- ie .emacs.d/init.el. Now what goes in there is elisp corresponding to the command you want. If say you want the command longlines then the corresponding elisp is this line (longlines-mode) But its important to understand how to get there. Do C-h f You should see the cursor at the bottom (its called the minibuffer) Type longlines-mode (get used to using tab expansion) RET You should see something like longlines-mode is an interactive compiled Lisp function in `longlines.el'. --------------------------------------------- (longlines-mode &optional ARG) Toggle Long Lines mode. In Long Lines mode, long lines are wrapped if they extend beyond `fill-column'. The soft newlines used for line wrapping will not show up when the text is yanked or saved to disk. If the variable `longlines-auto-wrap' is non-nil, lines are automatically wrapped whenever the buffer is changed. You can always call `fill-paragraph' to fill individual paragraphs. If the variable `longlines-show-hard-newlines' is non-nil, hard newlines are indicated with a symbol. -------------------------------------------------- Read it Whats the ARG?? God knows -- seems to be a doc-bug (Interesting considering this thread :-) ) Anyhow its optional so we can try dropping it and so we get from the 'command' M-x longlines-mode to the elisp (longlines-mode) Put it into your emacs and restart emacs. Check that its now your own new personal default. ---------------------------------------------------- There are other stops in the hacking and checking of emacs/elisp like using eval-expression, using the scratch buffer etc. But for now this much should be just right. Get this much running and post back here preferably with specific questions on where you are stuck. > > For me the requirements are; bookmarks, word count, split windows, > wordwrap (linebreak i think it's called (but not saving in that form > like nano/pico does)) if possible to remove some of the programming > features and things like calculator in order to have a faster app for > using with Alpine mail. [I know one can use MH but i don't know that > it's as fast as Alpine - i did have a look at it about a year ago but > i got lost somewhere setting it up]. > > Hope that's enough info for the moment. > > thanks > james