unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: lester <lester29@gazeta.pl>
To: emacs-devel@gnu.org
Subject: Re: Need help with flycheck and etc-sudoers-mode
Date: Wed, 29 Mar 2023 20:42:23 +0200	[thread overview]
Message-ID: <ec485d16-8875-9ec7-1031-4f4537daf23b@gazeta.pl> (raw)
In-Reply-To: <aefcebcb-5582-ab93-2ace-f276c4a5a442@gazeta.pl>

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)
> 



      parent reply	other threads:[~2023-03-29 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 11:47 Need help with flycheck and etc-sudoers-mode lester
2023-03-28 14:55 ` Philip Kaludercic
2023-03-29 18:42 ` lester [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ec485d16-8875-9ec7-1031-4f4537daf23b@gazeta.pl \
    --to=lester29@gazeta.pl \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).