all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Grant Rettke <gcr@wisdomandwonder.com>
To: mikael@djurfeldt.com
Cc: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: How to select the default coding system
Date: Sat, 20 Sep 2014 20:13:05 -0500	[thread overview]
Message-ID: <CAAjq1mdxr5ycEXnVpJf3KyCo4XSSPor4C-nWQ9a8yRUE3dw+yA@mail.gmail.com> (raw)
In-Reply-To: <CAA2XvwLMZEwnR0FcVHFqV-Lu8ebzXjuuYxnej_DpgB1aLbuVyw@mail.gmail.com>

Anywhere

(prefer-coding-system 'utf-8)

In GUI

(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))

On Windows

(set-clipboard-coding-system 'utf-16le-dos)
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Wed, Sep 17, 2014 at 9:05 AM, Mikael Djurfeldt <mikael@djurfeldt.com> wrote:
> Dear all,
>
> I just got a question from a beginner Emacs user how to set the default
> coding system.  For some reason, he didn't get utf-8 by default (which he
> wanted).  He might have touched some setting which caused this.
>
> Now, I'm myself an experienced Emacs user and once did have a complete
> overview of Emacs functionality.  But the multi-lingual envorpnment, coding
> systems etc is new to me.
>
> Trying to find the answer to this users question, I realized that the
> complexity is too large even for me (elisp programmer) to find an answer in
> reasonable time.
>
> I started out browsing options in the GUI, trying to find an option for the
> default coding system.  I *did* find some coding system options under
> "mule", but nothing which seemed to fit.
>
> In the manual I found a function "prefer-coding-system", which I gather one
> could place in .emacs.
>
> Q: What is the natural way to specify the default coding system,
> preferrably using the GUI (to facilitate things for this novel user).
>
> Best regards,
> Mikael D.



      parent reply	other threads:[~2014-09-21  1:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-17 14:05 How to select the default coding system Mikael Djurfeldt
2014-09-18  2:46 ` Eli Zaretskii
2014-09-21  1:13 ` Grant Rettke [this message]

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=CAAjq1mdxr5ycEXnVpJf3KyCo4XSSPor4C-nWQ9a8yRUE3dw+yA@mail.gmail.com \
    --to=gcr@wisdomandwonder.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mikael@djurfeldt.com \
    /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.