From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joakim Jalap Newsgroups: gmane.emacs.devel Subject: Re: Programmer dvorak input method Date: Tue, 08 Dec 2015 21:20:42 +0100 Message-ID: <87r3iwd751.fsf@joakim-desk.jockej.lan> References: <87fuze9zuu.fsf@fastmail.com> <877fkq9s1u.fsf@fastmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1449606068 9727 80.91.229.3 (8 Dec 2015 20:21:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 20:21:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 08 21:21:00 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a6Oku-0007Q4-IU for ged-emacs-devel@m.gmane.org; Tue, 08 Dec 2015 21:21:00 +0100 Original-Received: from localhost ([::1]:33380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Oku-0002fW-07 for ged-emacs-devel@m.gmane.org; Tue, 08 Dec 2015 15:21:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Okp-0002d5-SJ for emacs-devel@gnu.org; Tue, 08 Dec 2015 15:20:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Okl-0001yF-Sx for emacs-devel@gnu.org; Tue, 08 Dec 2015 15:20:55 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Okl-0001xu-M1 for emacs-devel@gnu.org; Tue, 08 Dec 2015 15:20:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a6Okj-000754-G6 for emacs-devel@gnu.org; Tue, 08 Dec 2015 21:20:49 +0100 Original-Received: from h-202-248.a328.priv.bahnhof.se ([5.150.202.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 21:20:49 +0100 Original-Received: from joakim.jalap by h-202-248.a328.priv.bahnhof.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 21:20:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 174 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: h-202-248.a328.priv.bahnhof.se User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:sYEwrMwV9rdAKjwv57yh2Cga9Bw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195985 Archived-At: --=-=-= Content-Type: text/plain Artur Malabarba writes: > I think the package also needs a line that looks like this: > > ;;;###autoload(register-input-method "programmers-dvorak" "English" > 'quail-use-package "DVP@" "English (ASCII) input method for > programmers Dvorak layout." "programmer-dvorak") > > IIUC, this should ensure that the input-method is available just by > installing the package, while the package won't be loaded until the > method is actually activated. Thank you for the feedback! Attaching a fixed version (I hope). --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=programmer-dvorak.el Content-Transfer-Encoding: quoted-printable Content-Description: programmer-dvorak.el ;;; programmer-dvorak.el --- Quail package for the programmer Dvorak layout ;; Copyright (C) 2015 Free Software Foundation, Inc. ;; Author: Joakim Jalap ;; Keywords: input method, Dvorak ;; This file is released under the terms of GNU Emacs. ;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . ;;; Commentary: ;;; This file provides an input method for the programmers Dvorak keyboard = layout ;;; by Roland Kaufman (). ;;; Code: (require 'quail) (quail-define-package "programmer-dvorak" "English" "DVP@" t "English (ASCII) input method for programmer Dvorak layout." nil t t t t nil nil nil nil nil t) ;; &% [7 {5 }3 (1 =3D9 *0 )2 +4 ]6 !8 #` $~ ;; ;: ,< .> pP yY fF gG cC rR lL /? @^ ;; aA oO eE uU iI dD hH tT nN sS -_ \| ;; '" qQ jJ kK xX bB mM wW vV zZ ;; (quail-define-rules ("-" ?!) ("=3D" ?#) ("`" ?$) ("q" ?\;) ("w" ?,) ("e" ?.) ("r" ?p) ("t" ?y) ("y" ?f) ("u" ?g) ("i" ?c) ("o" ?r) ("p" ?l) ("[" ?/) ("]" ?@) ("a" ?a) ("s" ?o) ("d" ?e) ("f" ?u) ("g" ?i) ("h" ?d) ("j" ?h) ("k" ?t) ("l" ?n) (";" ?s) ("'" ?-) ("\\" ?\\) ("z" ?\') ("x" ?q) ("c" ?j) ("v" ?k) ("b" ?x) ("n" ?b) ("m" ?m) ("," ?w) ("." ?v) ("/" ?z) ("_" ?8) ("+" ?`) ("~" ?~) ("Q" ?:) ("W" ?<) ("E" ?>) ("R" ?P) ("T" ?Y) ("Y" ?F) ("U" ?G) ("I" ?C) ("O" ?R) ("P" ?L) ("{" ??) ("}" ?^) ("A" ?A) ("S" ?O) ("D" ?E) ("F" ?U) ("G" ?I) ("H" ?D) ("J" ?H) ("K" ?T) ("L" ?N) (":" ?S) ("\"" ?_) ("|" ?|) ("Z" ?\") ("X" ?Q) ("C" ?J) ("V" ?K) ("B" ?X) ("N" ?B) ("M" ?M) ("<" ?W) (">" ?V) ("?" ?Z) ("1" ?&) ("2" ?\[) ("3" ?{) ("4" ?}) ("5" ?\() ("6" ?=3D) ("7" ?\*) ("8" ?\)) ("9" ?+) ("0" ?\]) ("!" ?%) ("@" ?7) ("#" ?5) ("$" ?3) ("%" ?1) ("^" ?9) ("&" ?0) ("*" ?2) ("(" ?4) (")" ?6) ) ;;;###autoload(register-input-method "programmer-dvorak" "English" 'quail-use-package "DVP@" "English (ASCII) input method for programmer Dvorak layout." "programmer-dvorak") ;;; programmer-dvorak.el ends here --=-=-=--