diff options
| author | nvimtor <hello@vitorl.com> | 2025-08-19 20:51:37 +0100 |
|---|---|---|
| committer | Youmu <condy0919@gmail.com> | 2025-08-21 10:03:26 +0800 |
| commit | e7f680fcaa75ff57389b380f8edc98c7e0f94d93 (patch) | |
| tree | bd795894290e67f3f427584772ac9d31cf559860 | |
| parent | 3feaee8e2907703f1254910ce1937b2b4f1059d9 (diff) | |
Add ovpn-mode
| -rw-r--r-- | evil-collection.el | 1 | ||||
| -rw-r--r-- | modes/ovpn-mode/evil-collection-ovpn-mode.el | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/evil-collection.el b/evil-collection.el index c3ed446..edb3d9d 100644 --- a/evil-collection.el +++ b/evil-collection.el @@ -278,6 +278,7 @@ See `evil-collection-init' and `evil-collection--modes-with-delayed-setup'." org-roam osx-dictionary outline + ovpn-mode p4 (package-menu package) pass diff --git a/modes/ovpn-mode/evil-collection-ovpn-mode.el b/modes/ovpn-mode/evil-collection-ovpn-mode.el new file mode 100644 index 0000000..eb634d1 --- /dev/null +++ b/modes/ovpn-mode/evil-collection-ovpn-mode.el @@ -0,0 +1,47 @@ +;;; 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 + "ZZ" 'quit-window + "ZQ" 'evil-quit)) + +(provide 'evil-collection-ovpn-mode) +;;; evil-collection-ovpn-mode.el ends here |
