From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Need help with flycheck and etc-sudoers-mode Date: Tue, 28 Mar 2023 14:55:01 +0000 Message-ID: <87tty5c4e2.fsf@posteo.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1145"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: lester Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 28 16:56:18 2023 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 1phAkE-000AZ3-4n for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Mar 2023 16:56:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phAj7-0003wI-VA; Tue, 28 Mar 2023 10:55:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phAj6-0003w1-GW for emacs-devel@gnu.org; Tue, 28 Mar 2023 10:55:08 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phAj3-0004e9-EF for emacs-devel@gnu.org; Tue, 28 Mar 2023 10:55:08 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5E48624037A for ; Tue, 28 Mar 2023 16:55:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680015303; bh=XYdPnFxQXUa1QWYsYpoHMl08d6v4PvWs0cqwbmtKdUE=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=orxaLV0tdglPJYkELbRPub+m6PFq/Bz5CGxh/9fmDcCnBZx7Yp80t7ssZZGBmcIHH aSOIrHEmctLalpOu3Ejbg7KzAzo3WUXlxUlhhSYqb3KSYW7/DIo7x1PN3ZPakLWCbO p9tIIQ/UaTsS2bn836kJwgFT2AO5hf6b3Rg2Gsvh3xGIhy1ChfE0E0BSv8/WqDlnEX t17B/XjHCNrk9pggnqLYUjqT1aekf/Md2UFpL3q28YOAn8OB21+T+sTgUknKJY8COt jJYieSo1oMCliGHJ9HmRDQoEKaBD9qfJHpdNqMY0mhFTQegCgZ/auM2n0NJWy1i+KG ZctGr10dZa1xw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PmCQZ5nX0z9rxM; Tue, 28 Mar 2023 16:55:02 +0200 (CEST) In-Reply-To: (lester's message of "Tue, 28 Mar 2023 13:47:04 +0200") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304803 Archived-At: lester writes: > I want to install `flycheck` together with > https://github.com/emacsmirror/etc-sudoers-mode. > > When I run gnu emacs, I get: > > Error (use-package): etc-sudoers-mode/:catch: Symbol=E2=80=99s value = as > variable is void: sudoers Disable showing Disable logging > > Have you any ideas what could be wrong? Thanks > > My `.emacs.d/init.el`: > > ;; use straight.el for package management > (defvar bootstrap-version) > (let ((bootstrap-file > (expand-file-name "straight/repos/straight.el/bootstrap.el" > user-emacs-directory)) > (bootstrap-version 6)) > (unless (file-exists-p bootstrap-file) > (with-current-buffer > (url-retrieve-synchronously > > "https://raw.githubusercontent.com/radian-software/straight.el/develop/in= stall.el" > 'silent 'inhibit-cookies) > (goto-char (point-max)) > (eval-print-last-sexp))) > (load bootstrap-file nil 'nomessage)) > > ;; install use-package using straight.el > (straight-use-package 'use-package) > > ;; configure use-package to use straight.el by default > (use-package straight > :custom > (straight-use-package-by-default t)) > > ;; disable startup screen > (setq inhibit-startup-screen t) > > ;; disable menu bar, scroll bar, and tool bar > (menu-bar-mode -1) > (toggle-scroll-bar -1) > (tool-bar-mode -1) > > ;; disable dialog boxes > (setq use-dialog-box nil) > > ;; set custom color scheme > (use-package doom-themes) > (use-package doom-moonfly-theme > :straight (:host github :repo "stackmystack/doom-moonfly-theme" > :branch "master")) > (load-theme 'doom-moonfly t) > > ;; set default font > (set-face-attribute 'default nil > :family "MesloLGS Nerd Font Mono" > :height 130 > :weight 'normal > :width 'normal) > > ;; always ask using y or n instead yes or no > (defalias 'yes-or-no-p 'y-or-n-p) > > ;; disable annoying bell > (setq ring-bell-function 'ignore) > > ;; auto close bracket insertion > (electric-pair-mode 1) > > ;; display line numbers > (require 'display-line-numbers) > > (defcustom display-line-numbers-exempt-modes > '(vterm-mode eshell-mode shell-mode term-mode ansi-term-mode) > "Major modes on which to disable line numbers." > :group 'display-line-numbers > :type 'list > :version "green") > > (defun display-line-numbers--turn-on () > "Turn on line numbers except for certain major modes. > Exempt major modes are defined in `display-line-numbers-exempt-modes'= ." > (unless (or (minibufferp) > (member major-mode display-line-numbers-exempt-modes)) > (display-line-numbers-mode))) > > (global-display-line-numbers-mode) > > ;; C-x C-; is not properly handled in terminal emulator so let's > ;; add custom key binding for toggling comments in line > (defun toggle-comment-on-line () > "comment or uncomment current line" > (interactive) > (comment-or-uncomment-region (line-beginning-position) > (line-end-position))) > (global-set-key (kbd "C-c ;") #'toggle-comment-on-line) > > ;; change indentation level for languages with C-like syntax > (setq-default c-basic-offset 4) > > ;; auto completion > (use-package company) > (add-hook 'after-init-hook 'global-company-mode) > (setq company-minimum-prefix-length 1 > company-idle-delay 0.0) ;; default is 0.2 > > ;; lsp mode > ;(use-package lsp-mode) > > ;; flycheck > (use-package flycheck) > (add-hook 'after-init-hook #'global-flycheck-mode) > > ;; sudoers mode > (use-package etc-sudoers-mode) > > ;; systemd mode > (use-package systemd) In general it would be better if you could produce a minimal working recipe to reproduce an issue from emacs -Q. I suspect that you theme and to a lesser extent the package manager is not related to the issue. Also, this kind of question is usually better fit for help-gnu-emacs@gnu.or= g. --=20 Philip Kaludercic