From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] services: 'console-keymap-service' takes multiple files. Date: Fri, 15 Apr 2016 23:17:54 +0200 Message-ID: <87vb3ir2pp.fsf@gnu.org> References: <87a8l3eqhc.fsf@gmail.com> <87lh4hcifc.fsf@gnu.org> <878u0eq2dv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arB7t-0008Q1-Nr for guix-devel@gnu.org; Fri, 15 Apr 2016 17:18:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arB7s-0007oE-Oe for guix-devel@gnu.org; Fri, 15 Apr 2016 17:18:05 -0400 In-Reply-To: <878u0eq2dv.fsf@gmail.com> (Alex Kost's message of "Fri, 15 Apr 2016 19:10:20 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > Ludovic Court=C3=A8s (2016-04-14 00:23 +0300) wrote: > >> Alex Kost skribis: >> >>> From 8c58974b549479a8e97cf64f21393aa495596e13 Mon Sep 17 00:00:00 2001 >>> From: Alex Kost >>> Date: Sat, 9 Apr 2016 00:21:15 +0300 >>> Subject: [PATCH] services: 'console-keymap-service' takes multiple file= s. >>> >>> * gnu/services/base.scm (console-keymap-service-type): Type procedure >>> takes a list of files instead of a single file. >>> (console-keymap-service): Take 'files' as rest arguments. >>> * doc/guix.texi (Base Services): Improve documentation of >>> 'console-keymap-service'. >> >> [...] >> >>> +Return a service to load console keymaps from @var{files} using >>> +@command{loadkeys} command. Most likely, you want to load some default >>> +keymap, which can be done like this: >>> + >>> +@example >>> +(console-keymap-service "dvorak") >>> +@end example >> >> Perhaps you could add the example from the IRC discussion you mentioned >> with a short explanation, just below this example? > > Would the following be OK? > > > @deffn {Scheme Procedure} console-keymap-service @var{files} ... > @cindex keyboard layout > Return a service to load console keymaps from @var{files} using > @command{loadkeys} command. Most likely, you want to load some default > keymap, which can be done like this: > > @example > (console-keymap-service "dvorak") > @end example > > Or, for example, for Swedish keyboards, you may need to combine keymaps: > @example > (console-keymap-service "se-ir209" "se-fi-ir209") Ideally with a few words to explain why this is useful on Swedish keyboards (Albin? :-)), but otherwise LGTM! Ludo=E2=80=99.