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: Need help with flycheck and etc-sudoers-mode Date: Tue, 28 Mar 2023 13:47:04 +0200 Message-ID: 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="18475"; 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 Tue Mar 28 14:12:52 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 1ph8C4-0004Zp-8b for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Mar 2023 14:12:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph8B4-0002UD-Dm; Tue, 28 Mar 2023 08:11:50 -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 1ph7nQ-0000OD-AM for emacs-devel@gnu.org; Tue, 28 Mar 2023 07:47:24 -0400 Original-Received: from smtpo46.poczta.onet.pl ([213.180.142.177]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph7nN-0005y0-BM for emacs-devel@gnu.org; Tue, 28 Mar 2023 07:47:23 -0400 Original-Received: from [192.168.53.77] (public-gprs371244.centertel.pl [37.47.81.109]) (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 4Pm7Fp5gzDzljHhp for ; Tue, 28 Mar 2023 13:47:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gazeta.pl; s=2013; t=1680004030; bh=G50JqFFfyRVGSKjqRhkMdI2jtV5nCha38UTVzsyH79I=; h=Date:To:From:Subject:From; b=IsBdxmourdc8/nsPO/HgfSaFuQaKC53GghLT+KaKtl0thWXBHqm1fkPplDjo/Htp2 qb11b/hkSFBo5nbQ7FdMTuhgL0eHBZwuCSYYCGdYrBhvcTKznr44aEACfPXSYPs3g5 T4Xk0fL0aXe2DxhCtpZysrlhBXrGRs9cfnzc8kjs= Content-Language: en-US Received-SPF: pass client-ip=213.180.142.177; envelope-from=lester29@gazeta.pl; helo=smtpo46.poczta.onet.pl X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 28 Mar 2023 08:11:46 -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:304799 Archived-At: 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)