From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Variables for easy customization (was: Gitlab Migration) Date: Sat, 4 Sep 2021 10:15:16 +0100 Message-ID: References: <01341bd6-b94b-4f94-1461-405e723142ad@yandex.ru> <8735qmjklm.fsf@localhost> <87ilzi86h7.fsf@posteo.net> <875yvh9anq.fsf@posteo.net> <83o899yjh2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/cNIN8YbNcEEDtBU" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7419"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, rms@gnu.org, lokedhs@gmail.com, yantar92@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, Dmitry Gutov , Eli Zaretskii To: Daniel Fleischer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 04 11:17:23 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMRnf-0001ji-6o for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 11:17:23 +0200 Original-Received: from localhost ([::1]:55744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMRne-0001QF-1Q for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 05:17:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMRlx-0008WH-Rf for emacs-devel@gnu.org; Sat, 04 Sep 2021 05:15:37 -0400 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:65::8:228]:48955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMRls-0001z2-M2; Sat, 04 Sep 2021 05:15:36 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 1AA3E54; Sat, 4 Sep 2021 09:15:25 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1630746923; bh=4WDXFVjU/mslzgMN6uwaJEL/20lU6tCScxvj7EKcvnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K4hWR5Mag8803z3OY0z9dbKutHHRqcafyeKtON7i2a6BLzek8VaXuwJPX51DaHcft dOlmUYuT1J6SmgSIyKzECurdPhmZeSn82vFPFo9eEFvvT+qanMca02p0A0Aay8NI07 f4Hs6m7C5mxLTVWn1cP2YsQ5V/uYAiuPNMeP/+bcTnUkOFyXiE4prOW91gYLNFNS0w 40v3Z3eHqzzJvoox9fyNXCuEgFXGGvHQyNfLrQ6MVufUFzji+x7gzGPeG/gEQxroKa wQJPXCYBUmuBy2kWEVkE9mLdzpXaOmssy+D3nKRq2U2GeGRH+zWwNexblpb7eZXm60 er6/5Pe+O4yug== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1mMRlc-001B5Q-Fr; Sat, 04 Sep 2021 10:15:16 +0100 Mail-Followup-To: Alan Third , Daniel Fleischer , Eli Zaretskii , philipk@posteo.net, rms@gnu.org, lokedhs@gmail.com, yantar92@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, Dmitry Gutov Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a01:4f8:fff0:65::8:228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273848 Archived-At: --/cNIN8YbNcEEDtBU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Sep 04, 2021 at 11:02:20AM +0300, Daniel Fleischer wrote: > Starting simple, with the following four areas: > > ;; Convenient > (setq scroll-preserve-screen-position t) > (setq visual-order-cursor-movement t) > (setq-default tab-width 4) > (global-auto-revert-mode) > (auto-save-visited-mode) > (indent-tabs-mode -1) > > ;; Compatibility with other editors > (electric-indent-mode) > (electric-pair-mode) > (cua-mode) > > ;; Session > (desktop-save-mode) > > ;; Visual > (tool-bar-mode -1) > (global-visual-line-mode) > (show-paren-mode) Example (badly named) theme attached. I left off CUA, desktop-save and tool-bar mode customisations because I'm not sure they really go along with the others. I have the feeling that we might want to make a separate CUA theme that makes customisations that are common to people who turn on CUA (or perhaps that's what this is supposed to be and I've missed the point). Also I'm not sure whether the way I'm turning on these global modes is appropriate for use in a theme. If I disable the theme they stay on, which is clearly not right. Perhaps all we need to do once we have these themes written is put a link on the splash screen to customize-themes? -- Alan Third --/cNIN8YbNcEEDtBU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="four-space-tabs-theme.el" (deftheme four-space-tabs "Programming settings that more closely reflect other editors defaults") (custom-theme-set-variables 'four-space-tabs '(indent-tabs-mode nil) '(tab-width 4) '(visual-order-cursor-movement t) '(scroll-preserve-screen-position t)) (global-auto-revert-mode) (auto-save-visited-mode) (electric-indent-mode) (electric-pair-mode) (global-visual-line-mode) (show-paren-mode) (provide-theme 'four-space-tabs) --/cNIN8YbNcEEDtBU--