sfromm / eos-mode

Emacs major mode for viewing and editing EOS (tm) configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emacs Mode for EOS Configuration Files

This is an Emacs package to view and edit Arista EOS (tm) configuration files.

EOS-Mode

This provides font-lock highlighting for different keywords, commands, and sections in EOS configuration. It also provides access to configuration sections via Imenu.

The official repository is located at: https://github.com/sfromm/eos-mode.

Installation

You can either clone this repository and add it your load-path or use something like Quelpa or Straight to add to your configuration. The following is one example.

Keying off of a line at the beginning of a file, such as RANCID-CONTENT-TYPE is really helpful to automatically enable the mode.

(use-package eos-mode
  :straight (eos-mode :type git :host github :repo "sfromm/eos-mode")
  :commands (eos-mode)
  :magic ("!RANCID-CONTENT-TYPE: arista" . eos-mode)
  :hook (eos-mode . highlight-indent-guides-mode))

Org-Mode

This can be used with org-mode to perform syntax highlighting.

router isis NetworkUnderlay
   net 49.0001.0000.0000.0010.00
   is-hostname mynet-pe-01
   is-type level-2
   log-adjacency-changes
   advertise passive-only
   !
   address-family ipv4 unicast
   !
   segment-routing mpls
      router-id 10.1.10.1
      no shutdown
!

About

Emacs major mode for viewing and editing EOS (tm) configuration


Languages

Language:Emacs Lisp 100.0%