Commit 5d2b9009 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

ENH: add simple function to convert all CMake commands to lowercase

parent dc9245df
......@@ -152,6 +152,26 @@
;; Helper functions for buffer
(defun unscreamify-cmake-buffer ()
"Convert all CMake commands to lowercase in buffer."
(setq save-point (point))
(goto-char (point-min))
(while (re-search-forward "^\\([ \t]*\\)\\(\\w+\\)\\([ \t]*(\\)" nil t)
(match-string 1)
(downcase (match-string 2))
(match-string 3))
(goto-char save-point)
;; Keyword highlighting regex-to-face map.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment