Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.editoren > #475 > unrolled thread

[Emacs] - „“ auf Windows.

Started byHorst Leps <horstleps@gmx.de>
First post2024-03-12 11:03 +0100
Last post2024-03-16 22:57 +0100
Articles 9 — 5 participants

Back to article view | Back to de.comp.editoren


Contents

  [Emacs] - „“ auf Windows. Horst Leps <horstleps@gmx.de> - 2024-03-12 11:03 +0100
    Re: [Emacs] - „“ auf Windows. Stefan Reuther <stefan.news@arcor.de> - 2024-03-12 19:11 +0100
    Re: [Emacs] - „“ auf Windows. Aidan Kehoe <kehoea@parhasard.net> - 2024-03-13 18:05 +0000
      Re: [Emacs] - „“ auf Windows. Dr. Horst Leps <horstleps@gmx.de> - 2024-03-14 10:40 +0100
        Re: [Emacs] - „“ auf Windows. Aidan Kehoe <kehoea@parhasard.net> - 2024-03-14 13:37 +0000
          Re: [Emacs] - „“ auf Windows. Horst Leps <horstleps@gmx.de> - 2024-03-14 20:46 +0100
            Re: [Emacs] - „“ auf Windows. Dr. Horst Leps <horstleps@gmx.de> - 2024-03-19 23:52 +0100
            Re: [Emacs] - „“ auf Windows. Horst Leps <horstleps@gmx.de> - 2024-03-19 23:53 +0100
        Re: [Emacs] - „“ auf Windows. Juergen Fenn <jfenn@gmx.net> - 2024-03-16 22:57 +0100

#475 — [Emacs] - „“ auf Windows.

FromHorst Leps <horstleps@gmx.de>
Date2024-03-12 11:03 +0100
Subject[Emacs] - „“ auf Windows.
Message-ID<l5anjiF6n28U1@mid.individual.net>
Wie kann ich dem Emacs auf Windows die deutschen Anführungszeichen 
beibringen? Auf dem Mac geht es mit Alt-^und Alt-2. Unter Windows keine 
Reaktionen. Ich habe mir das hier gebastelt:

(define-key global-map (kbd "<f1>") (lambda () (interactive) (insert "„")))
(define-key global-map (kbd "<f2>") (lambda () (interactive) (insert "“")))

Klappt. Ist aber nicht so hübsch.

danke, Horst

[toc] | [next] | [standalone]


#476

FromStefan Reuther <stefan.news@arcor.de>
Date2024-03-12 19:11 +0100
Message-ID<usq9ci.2c0.1@stefan.msgid.phost.de>
In reply to#475
Am 12.03.2024 um 11:03 schrieb Horst Leps:
> Wie kann ich dem Emacs auf Windows die deutschen Anführungszeichen
> beibringen? Auf dem Mac geht es mit Alt-^und Alt-2. Unter Windows keine
> Reaktionen. Ich habe mir das hier gebastelt:
> 
> (define-key global-map (kbd "<f1>") (lambda () (interactive) (insert "„")))
> (define-key global-map (kbd "<f2>") (lambda () (interactive) (insert "“")))

Ich komme relativ spontan auf

(define-key global-map (kbd "M-\"") "„")
(define-key global-map (kbd "M-§") "“")

Habe Alt(Meta)-Shift-2 und Alt(Meta)-Shift-3 gewählt, die halt
normalerweise " und § produzieren.


  Stefan

[toc] | [prev] | [next] | [standalone]


#477

FromAidan Kehoe <kehoea@parhasard.net>
Date2024-03-13 18:05 +0000
Message-ID<874jda80t9.fsf@parhasard.net>
In reply to#475
 Ar an dara lá déag de mí Márta, scríobh Horst Leps: 

 > Wie kann ich dem Emacs auf Windows die deutschen Anführungszeichen beibringen? 
 > Auf dem Mac geht es mit Alt-^und Alt-2. Unter Windows keine Reaktionen. Ich
 > habe mir das hier gebastelt:
 > 
 > (define-key global-map (kbd "<f1>") (lambda () (interactive) (insert "„")))
 > (define-key global-map (kbd "<f2>") (lambda () (interactive) (insert "“")))
 > 
 > Klappt. Ist aber nicht so hübsch.
 > 
 > danke, Horst

Wenn’s nur um Text gehen soll könnte Folgendes hilfreich sein:

  (require 'tex-site)
  (defvar TeX-open-quote)
  (defvar TeX-close-quote)
  
  (defun silly-directed-quotes-hook () 
    (make-local-variable 'TeX-open-quote)
    (make-local-variable 'TeX-close-quote)
    (setq TeX-open-quote (format "%c" (decode-char 'ucs #x201E))
  	  TeX-close-quote (format "%c" (decode-char 'ucs #x201C)))
    (local-set-key "\"" #'TeX-insert-quote))
  
  (add-hook 'mail-mode-hook #'silly-directed-quotes-hook)
  (add-hook 'message-mode-hook #'silly-directed-quotes-hook)
  
Also, wenn man "Beispiel" eintippt, wird „Beispiel“ im Buffer vorkommen.

-- 
‘As I sat looking up at the Guinness ad, I could never figure out /
How your man stayed up on the surfboard after fourteen pints of stout’
(C. Moore)

[toc] | [prev] | [next] | [standalone]


#478

FromDr. Horst Leps <horstleps@gmx.de>
Date2024-03-14 10:40 +0100
Message-ID<m24jd9f8xx.fsf@public-files.de>
In reply to#477
Am 13.03.2024 um 19:05 schrieb Aidan Kehoe:

>
> Wenn’s nur um Text gehen soll könnte Folgendes hilfreich sein:
>
>   (require 'tex-site)
>   (defvar TeX-open-quote)
>   (defvar TeX-close-quote)

Ich schreibe etwas fauler mit orgmode für Latex. Kann es solch Komfort
dort auch geben?

Oder beim E-Mail-Schreiben mit Gnus?

Danke,

Horst



-- 

[toc] | [prev] | [next] | [standalone]


#479

FromAidan Kehoe <kehoea@parhasard.net>
Date2024-03-14 13:37 +0000
Message-ID<87wmq56ijn.fsf@parhasard.net>
In reply to#478
 Ar an ceathrú lá déag de mí Márta, scríobh Horst Leps: 

y > Am 13.03.2024 um 19:05 schrieb Aidan Kehoe:
 > 
 > >
 > > Wenn’s nur um Text gehen soll könnte Folgendes hilfreich sein:
 > >
 > >   (require 'tex-site)
 > >   (defvar TeX-open-quote)
 > >   (defvar TeX-close-quote)
 > 
 > Ich schreibe etwas fauler mit orgmode für Latex. Kann es solch Komfort
 > dort auch geben?
 > 
 > Oder beim E-Mail-Schreiben mit Gnus?

Letzteres war die Absicht mit dem neuen Eintrag in message-mode-hook:

  (add-hook 'message-mode-hook #'silly-directed-quotes-hook)

Soll es auch mit org-mode gehen, sollte etwas ähnliches auch funktionieren:

  (add-hook 'org-mode-hook #'silly-directed-quotes-hook)

Habe ich aber nicht ausprobiert, ich benutze bis jetzt org-mode nicht.

-- 
‘As I sat looking up at the Guinness ad, I could never figure out /
How your man stayed up on the surfboard after fourteen pints of stout’
(C. Moore)

[toc] | [prev] | [next] | [standalone]


#480

FromHorst Leps <horstleps@gmx.de>
Date2024-03-14 20:46 +0100
Message-ID<86bk7gy4tn.fsf@gmx.de>
In reply to#479
Am 14.03.2024 um 14:37 schrieb Aidan Kehoe:

>  Ar an ceathrú lá déag de mí Márta, scríobh Horst Leps: 
>
> y > Am 13.03.2024 um 19:05 schrieb Aidan Kehoe:
>  > 
>  > >
>  > > Wenn’s nur um Text gehen soll könnte Folgendes hilfreich sein:
>  > >
>  > >   (require 'tex-site)
>  > >   (defvar TeX-open-quote)
>  > >   (defvar TeX-close-quote)

Bei TeX will das bei mir nicht: ``ggg''

Bei Orgemode und im Gnus ist schön.

Danke,

Horst

-- 
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.com

[toc] | [prev] | [next] | [standalone]


#482

FromDr. Horst Leps <horstleps@gmx.de>
Date2024-03-19 23:52 +0100
Message-ID<m2edc5sull.fsf@public-files.de>
In reply to#480
Am 14.03.2024 um 20:46 schrieb Horst Leps:

> Am 14.03.2024 um 14:37 schrieb Aidan Kehoe:
>
>>  Ar an ceathrú lá déag de mí Márta, scríobh Horst Leps: 
>>
>> y > Am 13.03.2024 um 19:05 schrieb Aidan Kehoe:
>>  > 
>>  > >
>>  > > Wenn’s nur um Text gehen soll könnte Folgendes hilfreich sein:
>>  > >
>>  > >   (require 'tex-site)
>>  > >   (defvar TeX-open-quote)
>>  > >   (defvar TeX-close-quote)
>
> Bei TeX will das bei mir nicht: ``ggg''

Hm, ja, klappt ja doch, ich habe es probiert. 

Bitte um Entschuldigung,

Horst

[toc] | [prev] | [next] | [standalone]


#483

FromHorst Leps <horstleps@gmx.de>
Date2024-03-19 23:53 +0100
Message-ID<m2bk79sujn.fsf@public-files.de>
In reply to#480
Am 14.03.2024 um 20:46 schrieb Horst Leps:

> Am 14.03.2024 um 14:37 schrieb Aidan Kehoe:
>
>>  Ar an ceathrú lá déag de mí Márta, scríobh Horst Leps: 
>>
>> y > Am 13.03.2024 um 19:05 schrieb Aidan Kehoe:
>>  > 
>>  > >
>>  > > Wenn’s nur um Text gehen soll könnte Folgendes hilfreich sein:
>>  > >
>>  > >   (require 'tex-site)
>>  > >   (defvar TeX-open-quote)
>>  > >   (defvar TeX-close-quote)
>
> Bei TeX will das bei mir nicht: ``ggg''

Hm, ja, klappt ja doch, ich habe es probiert. 

Bitte um Entschuldigung,

Horst

[toc] | [prev] | [next] | [standalone]


#481

FromJuergen Fenn <jfenn@gmx.net>
Date2024-03-16 22:57 +0100
Message-ID<m2v85lon5k.fsf@mid.individual.net>
In reply to#478
Dr. Horst Leps <horstleps@gmx.de> writes:

> Ich schreibe etwas fauler mit orgmode für Latex. Kann es solch Komfort
> dort auch geben?

Man kann den Export aus Org-Mode konfigurieren:

(setq user-full-name "N.N."
      user-mail-address "e@mail.com"
      org-export-default-language "de"
      org-export-with-smart-quotes t
      org-export-with-timestamps -1
      org-export-with-author t
      org-export-with-creator t
      org-export-with-date t
      org-export-with-email -1
      org-export-with-footnotes t
      org-export-headline-levels 10
      org-export-with-section-numbers -1
      org-export-with-planning -1
      org-export-time-stamp-file t
      org-export-with-title t
      org-export-with-toc t
      org-export-with-tables t)

Gerne nach Bedarf anpassen.

Wenn man "Quotes" in Org eingibt, erhält man beim Export
"`Gänsefüßchen"'.

Das entspricht meinen Vorgaben für TeX-Open-Quote und TeX-Close-Quote.

Viele Grüße,
Jürgen.

[toc] | [prev] | [standalone]


Back to top | Article view | de.comp.editoren


csiph-web