Skip to content
Major mode for editing Comware configuration files
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
comware-router-mode.el
todo.org

README.md

Comware Router Mode

License: GPL v3 MELPA

An Emacs major mode for editing Comware routers and switches configuration files.

Introduction

Taking inspiration from Noufal Ibrahim and his cisco-router-mode, I decided to write a major mode for editing Comware routers and switches configuration files. This mode is still in alpha version. Please feel free to contribute in improving it.

Installation

Download and copy comware-router-mode.el into your ~/.emacs.d/lisp directory and add the following to your init.el.

;; Tell Emacs where is your personal elisp lib directory
(add-to-list 'load-path "~/.emacs.d/lisp/")

;; comware-router-mode
;; https://github.com/daviderestivo/comware-router-mode
(load-library "comware-router-mode")

or if you prefer to use use-package:

;; An Emacs major mode for editing Comware routers and switches
;; configuration files.
(use-package comware-router-mode
  :defer t
  :ensure t)

Keybindings

Key Function
C-j comware-router-indent-line
C-c C-l v comware-router-vrf-list
C-c C-l i comware-router-interfaces-list
C-c C-l r comware-router-route-policies-list

License

This file is NOT part of GNU Emacs.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Contribution

Feel free to open an issue in case of questions or problems. Contributions are always welcome.

You can’t perform that action at this time.