I want to make a few customizations to cmake-model.el. The big-picture view of this lisp file is as follows:
... ;; This function I want to modify (defun cmake-indent () ... ) ... ;; Mode definition. ;; ;;;###autoload (define-derived-mode cmake-mode cmake--parent-mode "CMake" "Major mode for editing CMake source files." ... )
What I want to do is to create a minor mode
ros-mode which would override the
cmake-indent() function with my own, but keep everything else the same compared to the original cmake-mode.el. The mode line should show
ROS when the minor mode is active.
I have no experience with creating minor modes, but I feel like this should be easy for someone with experience. Thank you for helping!