Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Symbol's value as variable is void: icinga2-mode-map #1

@JanSimek

Description

@JanSimek

Hello, I added this to my init.el:

;; Tell emacs where is your personal elisp lib dir                                           
(add-to-list 'load-path "~/.emacs.d/lisp/")                                                  
                                                                                             
;; load the packaged named xyz.                                                              
(load "icinga2-mode") ;; best not to include the ending .el or .elc

But when I start emacs I am getting this error:

Symbol's value as variable is void: icinga2-mode-map

To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.

Starting with --debug-init:

Debugger entered--Lisp error: (void-variable icinga2-mode-map)
  (define-key icinga2-mode-map [remap comment-dwim] 'icinga2-comment-dwim)
  (let ((map (make-keymap))) (define-key map "\n" 'newline-and-indent) (define-key icinga2-mode-map [remap comment-dwim] 'icinga2-comment-dwim) (define-key map "M-TAB" 'icinga2-complete-s$
  (defvar icinga2-mode-map (let ((map (make-keymap))) (define-key map "\n" 'newline-and-indent) (define-key icinga2-mode-map [remap comment-dwim] 'icinga2-comment-dwim) (define-key map "M$
  eval-buffer(#<buffer  *load*-569621> nil "/home/jsimek/.emacs.d/lisp/icinga2-mode.el" nil t)  ; Reading at buffer position 7799
  load-with-code-conversion("/home/jsimek/.emacs.d/lisp/icinga2-mode.el" "/home/jsimek/.emacs.d/lisp/icinga2-mode.el" nil nil)
  load("icinga2-mode")
  eval-buffer(#<buffer  *load*> nil "/home/jsimek/.emacs.d/init.el" nil t)  ; Reading at buffer position 1073
  load-with-code-conversion("/home/jsimek/.emacs.d/init.el" "/home/jsimek/.emacs.d/init.el" t t)
  load("/home/jsimek/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x158f95839631>) #f(compiled-function () #<bytecode 0x158f95839645>) t)
  command-line()
  normal-top-level()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions