From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNuRB-0001VE-M6 for guix-patches@gnu.org; Sun, 10 Dec 2017 00:46:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNuR8-0007PU-Im for guix-patches@gnu.org; Sun, 10 Dec 2017 00:46:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNuR8-0007PO-F0 for guix-patches@gnu.org; Sun, 10 Dec 2017 00:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eNuR8-00075l-8L for guix-patches@gnu.org; Sun, 10 Dec 2017 00:46:02 -0500 Subject: [bug#29639] [PATCH] gnu: Add emacs-string-inflection. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNuQd-0001TU-8W for guix-patches@gnu.org; Sun, 10 Dec 2017 00:45:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNuQa-0006Ws-2H for guix-patches@gnu.org; Sun, 10 Dec 2017 00:45:31 -0500 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]:45800) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNuQZ-0006VG-Ko for guix-patches@gnu.org; Sun, 10 Dec 2017 00:45:27 -0500 Received: by mail-it0-x22b.google.com with SMTP id z6so9976440iti.4 for ; Sat, 09 Dec 2017 21:45:27 -0800 (PST) Received: from apteryx ([45.72.150.165]) by smtp.gmail.com with ESMTPSA id e36sm2508916itd.27.2017.12.09.21.45.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Dec 2017 21:45:26 -0800 (PST) From: Maxim Cournoyer Date: Sun, 10 Dec 2017 00:45:20 -0500 Message-ID: <87zi6ruoen.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29639@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, This Emacs package can be used to easily adapt symbol names to different naming schemes/conventions. Example of activation for your .emacs: ;;; Cycle between snake case, camel case, etc. (require 'string-inflection) (global-set-key (kbd "C-c i") 'string-inflection-cycle) (global-set-key (kbd "C-c C") 'string-inflection-camelcase) ;; Force to CamelCase (global-set-key (kbd "C-c L") 'string-inflection-lower-camelcase) ;; Force to lowerCamelCase (global-set-key (kbd "C-c u") 'string-inflection-underscore) (global-set-key (kbd "C-c J") 'string-inflection-java-style-cycle) ;; Cycle through Java styles Thanks! Maxim --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-emacs-string-inflection.patch Content-Transfer-Encoding: quoted-printable From=205791a4edbdaa9eb422729d54ad78d1fd646dd05a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 10 Dec 2017 00:05:31 -0500 Subject: [PATCH] gnu: Add emacs-string-inflection. * gnu/packages/emacs.scm (emacs-string-inflection): New variable. =2D-- gnu/packages/emacs.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 77da8f2f2..96ca9af79 100644 =2D-- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -2153,6 +2153,43 @@ evaluated in the browser, just like Emacs does with = an inferior Lisp process in Lisp modes.") (license license:unlicense))) =20 +(define-public emacs-string-inflection + (package + (name "emacs-string-inflection") + (version "1.0.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/akicho8/string-inflection") + (commit "a150e7bdda60b7824d3a936750ce23f73b0e4edd"))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1k0sm552iawi49v4zis6dbb81d1rzgky9v0dpv7nj31gnb7bmy7k")))) + (build-system emacs-build-system) + (native-inputs + `(("ert-runner" ,ert-runner))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'install 'check + (lambda _ + (zero? (system* "ert-runner"))))))) + (home-page "https://github.com/akicho8/string-inflection") + (synopsis "Convert symbol names between different naming conventions") + (description + "This Emacs package provides convenient methods for manipulating the +naming style of a symbol. It supports different naming conventions such a= s: + +@enumerate +@item camel case +@item Pascal case +@item all upper case +@item lower case separated by underscore +@item etc... +@end enumerate\n") + (license license:gpl2+))) + (define-public emacs-stripe-buffer (package (name "emacs-stripe-buffer") =2D-=20 2.14.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEFVwTvgZwWPWnh370K8v/MDHLu9sFAlosyfAACgkQK8v/MDHL u9usyBAAoIjOQswqHlIlKKzh5SRnnfyBxqZd1xNCbJRDR4EuB03RXaUPQIklced3 Ze+XdL/PXLZHct7+Ff4zUwndwerkRIvLQQk4/TRStQVLnvmYpuH/czwWMy1+X7Xc 4wP3nA8moXRJk8D9MfSdwJQx+8MTSB7eWUezKo2ox00f8toCdr/LWDvLG9fVCjdb x5id7gK0mHAi1Z5GwFK4/61Kfze5QXQXTpi+QhC0VaqZ+Mp5CwEW04o5R+ZOpQPw X2ChNS3qoJFSOO00QEcH64WeYerYzWUQB2mdRzmti4PlIA2hfISnjPhGWtfJwCiE wKWu6DtTeHt5Z17FBkeMQLGLgdVzOX2s0uqIMyIoyMQaTEaLYtoLr9oYB0KM8j3f ShqeStpYfHYQNBEU/1m3qX2AKGO5VlGF+0OFSmvw/11LlkOV1qC+7/PwloP/nl4q up/AARrbNK6ZA3iKfP6wdtjKIuYsT79KkuKS8gDpskGpXeCTO4Bw/+to/Cb2lyxr IQiKqHUI8r8x4SSkpjMEBBK4FlJW5w0RsZ+yTe3ypSPFocxtMEwtVmX6xXX+QRFD y0iyNUMlE87yKvHPU9E3qoQmtG5LdlBkFgr/w+hlyDefOBCIyfRY66x0zJ/o3xWL 64+WyNZSSfDqj1FsKzMhkxIKQC5zV9pNIkVXrNvoBfrFd2/mF4c= =7ip0 -----END PGP SIGNATURE----- --==-=-=--