Trying to install malabar-mode in emacs, getting "Can not open load file, malabar-mode"

So, I followed the instructions on the github page in malabar mode.

I have emacs packages, with the addition of melpa as an archive (which uses malabar mode). mvmthe containing directory is in mine exec-path, and I added the following to my file ~/.emacsas per the README instructions :

(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
                                  global-semanticdb-minor-mode
                                  global-semantic-idle-summary-mode
                                  global-semantic-mru-bookmark-mode))
(semantic-mode 1)
(require 'malabar-mode)
(setq malabar-groovy-lib-dir "/path/to/malabar/lib")
(add-to-list 'auto-mode-alist '("\\.java\\'" . malabar-mode))

However, when I run emacs, I get:

Warning (initialization): An error occurred while loading `/Users/kalaracey/.emacs':

File error: Cannot open load file, malabar-mode

How can I get malabar mode to work? I use Emacs 24, which has CEDET built in, so I added this code to my ~/.emacsfile (as instructed).

+4
1

malabar-mode MELPA, .

(add-to-list 'package-archives  
    '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(package-install 'malabar-mode)
(package-install 'flycheck)      ;; This is optional but nice to have

.emacs.

malabar ( 30 ), , .java.

(defun malabar-mode-bootstrap ()
  (require 'cedet)
  (require 'semantic)
  (load "semantic/loaddefs.el")
  (semantic-mode 1);;
  (require 'malabar-mode)
  (load "malabar-flycheck")

  (malabar-mode)
  (flycheck-mode))

(add-to-list 'auto-mode-alist '("\\.java\\'" . malabar-mode-bootstrap))

, https://github.com/m0smith/maven-pom-mode pom.xml.

+6

Source: https://habr.com/ru/post/1526573/


All Articles