all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Need "xemacs/init.el" => "emacs/init.el" help
Date: Thu, 21 Jan 2016 22:46:05 +0100	[thread overview]
Message-ID: <87mvryli76.fsf@debian.uxu> (raw)
In-Reply-To: CAFMGiz_qX6SCJU5ta0emDA2YaT0AF-2sFgpDQeBPdtfMUNq0aw@mail.gmail.com

Tom Browder <tom.browder@gmail.com> writes:

> ; 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.
>
> I have read about the init.el entries not normally
> affecting modes already loaded without special lisp
> code. Is that what may be happening in my case?
>
> Any help will be greatly appreciated.

OK, first F6 is a *very bad* key for that! Try M-q
which is the default keystroke for `fill-paragraph'.

Second, your code should work what I can see!

Try starting Emacs like this:

    $ emacs -Q

Then find your init file and evaluate only this part:

    (global-set-key [f6] #'fill-paragraph)

Last, hit F6. Still no luck?

Also, you do this in X, right? Either in a terminal
emulator (e.g., xterm) with -nw or the GUI Emacs
(normal invocation these days) and F6 should be fine.
In a Linux VT tho without special attention F6 doesn't
work. And the reason it hasn't received such attention
is, again, it is a bad key (too distant: out of hand
touch type position).

-- 
underground experts united
http://user.it.uu.se/~embe8573




  parent reply	other threads:[~2016-01-21 21:46 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
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 [this message]
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=87mvryli76.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --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.