aboutsummaryrefslogtreecommitdiff
path: root/.config/emacs/lisp/evil-collection/modes/ovpn-mode/evil-collection-ovpn-mode.el
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-05 01:19:30 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-05 01:19:30 -0400
commitbdf9a71ab7baa2b1de9abcfd5df1a9107a55d141 (patch)
treec4524e6c41aa5107211103401dabfaefc81aa882 /.config/emacs/lisp/evil-collection/modes/ovpn-mode/evil-collection-ovpn-mode.el
parentfe3984f541bd32bdfa418afb305b614176b55ca0 (diff)
add a bunch of emacs packages HELP
Diffstat (limited to '.config/emacs/lisp/evil-collection/modes/ovpn-mode/evil-collection-ovpn-mode.el')
-rw-r--r--.config/emacs/lisp/evil-collection/modes/ovpn-mode/evil-collection-ovpn-mode.el56
1 files changed, 56 insertions, 0 deletions
diff --git a/.config/emacs/lisp/evil-collection/modes/ovpn-mode/evil-collection-ovpn-mode.el b/.config/emacs/lisp/evil-collection/modes/ovpn-mode/evil-collection-ovpn-mode.el
new file mode 100644
index 0000000..ca6ec04
--- /dev/null
+++ b/.config/emacs/lisp/evil-collection/modes/ovpn-mode/evil-collection-ovpn-mode.el
@@ -0,0 +1,56 @@
+;;; evil-collection-ovpn-mode.el --- Bindings for `ovpn-mode' -*- lexical-binding: t -*-
+
+;; Copyright (C) 2025 Vitor Leal
+
+;; Author: Vitor Leal <hello@vitorl.com>
+;; Maintainer: Vitor Leal <hello@vitorl.com>
+;; URL: https://github.com/emacs-evil/evil-collection
+;; Version: 0.0.1
+;; Package-Requires: ((emacs "26.3"))
+;; Keywords: evil, emacs, convenience, tools
+
+;; 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.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+;;; Bindings for ovpn-mode.
+
+;;; Code:
+(require 'evil-collection)
+(require 'ovpn-mode nil t)
+
+(defvar ovpn-mode-map)
+(defconst evil-collection-ovpn-mode-maps '(ovpn-mode-map))
+
+;;;###autoload
+(defun evil-collection-ovpn-mode-setup ()
+ "Set up `evil' bindings for `ovpn-mode'."
+ (evil-collection-define-key 'normal 'ovpn-mode-map
+ "s" 'ovpn-mode-start-vpn
+ "n" 'ovpn-mode-start-vpn-with-namespace
+ "q" 'ovpn-mode-stop-vpn
+ "r" 'ovpn-mode-restart-vpn
+ "i" 'ovpn-mode-info-vpn
+ "$" 'ovpn-mode-buffer-vpn
+ "o" 'ovpn-mode-edit-vpn
+ "~" 'ovpn-mode-dir-filter
+ "d" 'ovpn-mode-dir-set
+ "a" 'ovpn-mode-active
+ "J" 'ovpn-mode-ipv6-linux-toggle
+ "T" 'ovpn-mode-spawn-term-in-namespace
+ "B" 'ovpn-mode-spawn-browser-in-namespace
+ "ZZ" 'quit-window
+ "ZQ" 'evil-quit))
+
+(provide 'evil-collection-ovpn-mode)
+;;; evil-collection-ovpn-mode.el ends here