all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need help with flycheck and etc-sudoers-mode
@ 2023-03-28 11:47 lester
  2023-03-28 14:55 ` Philip Kaludercic
  2023-03-29 18:42 ` lester
  0 siblings, 2 replies; 3+ messages in thread
From: lester @ 2023-03-28 11:47 UTC (permalink / raw)
  To: emacs-devel

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)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help with flycheck and etc-sudoers-mode
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Philip Kaludercic @ 2023-03-28 14:55 UTC (permalink / raw)
  To: lester; +Cc: emacs-devel

lester <lester29@gazeta.pl> 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’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)

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.org.

-- 
Philip Kaludercic



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help with flycheck and etc-sudoers-mode
  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
  1 sibling, 0 replies; 3+ messages in thread
From: lester @ 2023-03-29 18:42 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-29 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.