all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs preferences.
@ 2007-07-16 11:22 vincent.marguerit
  2007-07-16 11:49 ` Jean Magnan de Bornier
  2007-07-16 15:43 ` Harald Hanche-Olsen
  0 siblings, 2 replies; 5+ messages in thread
From: vincent.marguerit @ 2007-07-16 11:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am under Mac OS X and and changed my .emacs file to this:

(add-hook 'text-mode-hook 'iso-accents-mode)
(set-terminal-coding-system 'latin-1)
(set-keyboard-coding-system 'latin-1)
(set-language-environment 'latin-1)
(set-foreground-color "wheat")
(set-background-color "DarkSlateGray")
(set-cursor-color "white")
(menu-bar-mode -1)
(scroll-bar-mode -1)
(global-font-lock-mode 1)
(require 'php-mode)
(add-hook 'php-mode-user-hook 'turn-on-font-lock)
(add-hook 'php-mode-user-hook
'(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))

But it's not working properly!

Any idea why this is not working ?

To be sure I put .emacs in the right directory I did a vi ~/.emacs to
modify it.  I installed Aquaemacs.

Thanks,
Vincent.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs preferences.
  2007-07-16 11:22 Emacs preferences vincent.marguerit
@ 2007-07-16 11:49 ` Jean Magnan de Bornier
  2007-07-16 12:50   ` Jason Rumney
  2007-07-16 15:43 ` Harald Hanche-Olsen
  1 sibling, 1 reply; 5+ messages in thread
From: Jean Magnan de Bornier @ 2007-07-16 11:49 UTC (permalink / raw)
  To: help-gnu-emacs

vincent.marguerit@gmail.com wrote :

| Hi,
>
| I am under Mac OS X and and changed my .emacs file to this:
>
| (add-hook 'text-mode-hook 'iso-accents-mode)

don't write:

| (set-terminal-coding-system 'latin-1)
but write:
(setq terminal-coding-system 'latin-1)

generally (setq VARIABLE VALUE)

| (set-keyboard-coding-system 'latin-1) 
| (set-language-environment 'latin-1) 
| (set-foreground-color "wheat") 
| (set-background-color "DarkSlateGray") 
| (set-cursor-color "white") 
| (menu-bar-mode -1)
| (scroll-bar-mode -1) (global-font-lock-mode 1) (require 'php-mode)
| (add-hook 'php-mode-user-hook 'turn-on-font-lock) (add-hook
| 'php-mode-user-hook '(lambda () (define-abbrev php-mode-abbrev-table
| "ex" "extends")))
>
| But it's not working properly!

HTH
-- 
Jean

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs preferences.
  2007-07-16 11:49 ` Jean Magnan de Bornier
@ 2007-07-16 12:50   ` Jason Rumney
  2007-07-16 13:04     ` vincent.marguerit
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Rumney @ 2007-07-16 12:50 UTC (permalink / raw)
  To: help-gnu-emacs

On 16 Jul, 12:49, Jean Magnan de Bornier <j...@bornier.net> wrote:

> don't write:
>
> | (set-terminal-coding-system 'latin-1)
> but write:
> (setq terminal-coding-system 'latin-1)

This is bad advice. No such variable exists. When set-* commands for a
specific purpose exist, they usually exist for a good reason.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs preferences.
  2007-07-16 12:50   ` Jason Rumney
@ 2007-07-16 13:04     ` vincent.marguerit
  0 siblings, 0 replies; 5+ messages in thread
From: vincent.marguerit @ 2007-07-16 13:04 UTC (permalink / raw)
  To: help-gnu-emacs

On 16 juil, 13:50, Jason Rumney <jasonrum...@gmail.com> wrote:
> On 16 Jul, 12:49, Jean Magnan de Bornier <j...@bornier.net> wrote:
>
> > don't write:
>
> > | (set-terminal-coding-system 'latin-1)
> > but write:
> > (setq terminal-coding-system 'latin-1)
>
> This is bad advice. No such variable exists. When set-* commands for a
> specific purpose exist, they usually exist for a good reason.

Actually now it's working because I installed Emacs carbon instead of
Aqua Emacs. Maybe Aqua emacs does not use the same file for
preferences. I don't know!

Anyway noz it's it's working....

;)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs preferences.
  2007-07-16 11:22 Emacs preferences vincent.marguerit
  2007-07-16 11:49 ` Jean Magnan de Bornier
@ 2007-07-16 15:43 ` Harald Hanche-Olsen
  1 sibling, 0 replies; 5+ messages in thread
From: Harald Hanche-Olsen @ 2007-07-16 15:43 UTC (permalink / raw)
  To: help-gnu-emacs

+ vincent.marguerit@gmail.com:

| I am under Mac OS X and and changed my .emacs file to this:
| [...]
| (set-keyboard-coding-system 'latin-1)

This is the one thing I can't get to work either.
After a bit of fiddling I ended up with this:

  (when (eq window-system 'mac)
    (add-hook 'after-init-hook
	      (lambda () (set-keyboard-coding-system 'iso-latin-1))))

and, oddly enough, I think that did work for a while but now I have to
type C-x C-m k latin-1 RET after emacs has started up.

This is on GNU emacs built from the emacs-unicode-2 CVS branch:

GNU Emacs 23.0.0.1 (powerpc-apple-darwin8.9.0, Carbon Version 1.6.0)

Does anybody else see this?  Any idea why?

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-16 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16 11:22 Emacs preferences vincent.marguerit
2007-07-16 11:49 ` Jean Magnan de Bornier
2007-07-16 12:50   ` Jason Rumney
2007-07-16 13:04     ` vincent.marguerit
2007-07-16 15:43 ` Harald Hanche-Olsen

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.