From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lester Newsgroups: gmane.emacs.devel Subject: Re: Need help with flycheck and etc-sudoers-mode Date: Wed, 29 Mar 2023 20:42:23 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26082"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 30 07:04:48 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 1phkSu-0006ZB-0u for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Mar 2023 07:04:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phkSC-0002O6-Hy; Thu, 30 Mar 2023 01:04:04 -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 1phakz-0006XP-Fe for emacs-devel@gnu.org; Wed, 29 Mar 2023 14:42:49 -0400 Original-Received: from smtpo79.poczta.onet.pl ([141.105.16.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phakv-0007mO-MY for emacs-devel@gnu.org; Wed, 29 Mar 2023 14:42:48 -0400 Original-Received: from [192.168.201.77] (public-gprs382714.centertel.pl [37.47.126.59]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: lester29@gazeta.pl) by smtp.gazeta.pl (Onet) with ESMTPSA id 4PmwQd1ThNz2K2tSM for ; Wed, 29 Mar 2023 20:42:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gazeta.pl; s=2013; t=1680115353; bh=dm/LDWcttyeepiPI/8/ysocwEjSgkDSqDSqQqPB5oKI=; h=Date:Subject:From:To:References:In-Reply-To:From; b=iHfpvAJ3kYBvUj/u4OvFVTaFLuYqP4shoqO/WWnKrzgvl15yg0auZyfiZ8E32s8dC Ad7uY4AwzIKU6xsjifDI/UdZ4vvgzaKns3eLOVpZTGW8LhDFYTLQ8xzl/3YBjMjOu0 ldKiSzr78DUexA6suU0YD4J4x4VNAzolClTqoEHI= Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=141.105.16.29; envelope-from=lester29@gazeta.pl; helo=smtpo79.poczta.onet.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, 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-Mailman-Approved-At: Thu, 30 Mar 2023 01:04:02 -0400 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:304834 Archived-At: Hey, I posted this message in the wrong group so you can delete it. I made a stupid mistake, excuse me. lester On 28.03.2023 13:47, lester wrote: > 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’s 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/install.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) >