* minor annoyance with automatic insertion of encoding string
@ 2014-01-30 0:37 varro
2014-01-30 1:42 ` Stefan Monnier
[not found] ` <mailman.13141.1391046319.10748.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: varro @ 2014-01-30 0:37 UTC (permalink / raw)
To: help-gnu-emacs
I've noticed that when I insert a non-ASCII character into one of my
source files, Emacs automatically inserts an encoding directive like:
# -*- coding: utf-8 -*-
when I save the file. I assume this has something to do with my
having:
(setq-default buffer-file-coding-system 'utf-8-unix)
in my .emacs file, but I don't understand the reason for this and find
it a bit annoying. Can anyone enlighten me on why this is happening?
--
Will
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: minor annoyance with automatic insertion of encoding string
2014-01-30 0:37 minor annoyance with automatic insertion of encoding string varro
@ 2014-01-30 1:42 ` Stefan Monnier
[not found] ` <mailman.13141.1391046319.10748.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2014-01-30 1:42 UTC (permalink / raw)
To: help-gnu-emacs
> I've noticed that when I insert a non-ASCII character into one of my
> source files, Emacs automatically inserts an encoding directive like:
> # -*- coding: utf-8 -*-
> when I save the file.
AFAIK, this should not happen with a vanilla Emacs, so it probably comes
from one of the customizations you're using.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.13141.1391046319.10748.help-gnu-emacs@gnu.org>]
* Re: minor annoyance with automatic insertion of encoding string
[not found] ` <mailman.13141.1391046319.10748.help-gnu-emacs@gnu.org>
@ 2014-01-30 20:40 ` varro
0 siblings, 0 replies; 3+ messages in thread
From: varro @ 2014-01-30 20:40 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Monnier wrote:
>> I've noticed that when I insert a non-ASCII character into one of my
>> source files, Emacs automatically inserts an encoding directive like:
>> # -*- coding: utf-8 -*-
>> when I save the file.
>
> AFAIK, this should not happen with a vanilla Emacs, so it probably comes
> from one of the customizations you're using.
On further investigation, it seems to be feature of ruby-mode, and happens
even if I remove my .emacs file.
--
Will
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-30 20:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 0:37 minor annoyance with automatic insertion of encoding string varro
2014-01-30 1:42 ` Stefan Monnier
[not found] ` <mailman.13141.1391046319.10748.help-gnu-emacs@gnu.org>
2014-01-30 20:40 ` varro
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.