;;; tools/terraform-plus/init.el -*- lexical-binding: t; -*- ;;; Mode ;; (define-derived-mode terraform-plus-section-mode special-mode "Terraform-Plus-Sections" ;; "Parent major mode that terraform-plus-like sections inherit" ;; (buffer-disable-undo) ;; (setq truncate-lines t) ;; (setq buffer-read-only t) ;; (setq show-trailing-whitespace nil)) ;; (defvar terraform-plus-section-mode-map ;; (let ((map (make-keymap))) ;; (suppress-keymap map t) ;; (define-key map (kbd "TAB") 'terraform-plus-section-toggle) ;; map)) ;;; Visibility ;; (defun terraform-plus-section-toggle (section) ;; "Toggle the visibility of the current section" ;; ())