all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dale Snell <ddsnell@frontier.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Need "xemacs/init.el" => "emacs/init.el" help
Date: Thu, 21 Jan 2016 13:45:03 -0800	[thread overview]
Message-ID: <20160121134503.405c96e8@zothique.localdomain> (raw)
In-Reply-To: <CAFMGiz_qX6SCJU5ta0emDA2YaT0AF-2sFgpDQeBPdtfMUNq0aw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2322 bytes --]

On Thu, 21 Jan 2016 13:44:03 -0600, in message
CAFMGiz_qX6SCJU5ta0emDA2YaT0AF-2sFgpDQeBPdtfMUNq0aw@mail.gmail.com, Tom
Browder wrote:

> I have bitten the bullet to start using Emacs vs. my 20+ years using
> XEmacs use.  I have never been a real power user, but I have my
> init.el doing the things I need most.
> 
> So far I have discovered the excellent "M-x list-packages" way to
> install packages and have started trying to duplicate the behavior I'm
> used to with XEmacs.  I've also discovered Eric Schulte's "Emacs 24
> Starter Kit" here:
> 
>   http://github.com/eschulte/emacs24-starter-kit/
> 
> but I will save that for a bit later.
> 
> One of the things I use all the time in XEmacs is NO line wrapping
> except when I manually use function "fill-paragraph".  (I have that
> bound to a key for ease of use.)  I will admit that the
> "fill-paragraph" didn't work reliably in XEmacs in all modes (I hope
> Emacs will be able to fix that), but for the most part it does what I
> need in XEmacs.  But I cannot get it to work in Emacs.
> 
> Here's my entire Emacs init.el at the moment (all blank lines and some
> comments removed):
> 
> ; Personal emacs mods of Tom Browder
> (require 'package)
> (add-to-list 'package-archives '("melpa" .
> "http://melpa.org/packages/")) ; packages installed via M-x
> list-packages: ;   perl6-mode
> (setq-default major-mode 'text-mode)
> (set-default 'truncate-lines t)
> (setq-default fill-column 70)
> (global-set-key [f6] 'fill-paragraph)
> ; prefer cperl for Perl 5
> (defalias 'perl-mode 'cperl-mode)
> 
> So far, and only using a text buffer, the truncate lines t seems to
> work, but I can't get any such line to wrap with the "fill-paragraph"
> function.

Here are some lines from my init file:

;;; Set the major mode for new buffers to text-mode:
(setq major-more 'text-mode)
;;; Set the fill column:
(add-hook 'text-mode-hook (lambda () (setq-default fill-column 66)))

Also, Emacs defines M-q to run fill-paragraph by default; there's
no need to define your own keybinding.


Anyway, I hope this helps.

--Dale

-- 
"Wanted: Young, skinny, wirey fellows not over 18.  Must be expert
riders willing to risk death daily.  Orphans preferred.  Wages $25
per week."    -- Pony Express advertisement, 1860 

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2016-01-21 21:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 19:44 Need "xemacs/init.el" => "emacs/init.el" help Tom Browder
2016-01-21 21:45 ` Dale Snell [this message]
2016-01-21 21:49   ` Emanuel Berg
2016-01-21 22:14     ` Dale Snell
2016-01-21 22:29       ` Tom Browder
2016-01-22 23:21         ` Tom Browder
2016-01-22  1:14       ` Emanuel Berg
2016-01-22  1:43         ` Dale Snell
2016-01-21 21:46 ` Emanuel Berg
2016-01-22  7:04 ` Eli Zaretskii
2016-01-22 23:25   ` Tom Browder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160121134503.405c96e8@zothique.localdomain \
    --to=ddsnell@frontier.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.