Added freerdp-style-mode-off.

Pascal J. Bourguignon [2018-11-21 10:28]
Added freerdp-style-mode-off.
Filename
freerdp-c-style.el
diff --git a/freerdp-c-style.el b/freerdp-c-style.el
index 9767445..893fbd4 100644
--- a/freerdp-c-style.el
+++ b/freerdp-c-style.el
@@ -615,5 +615,14 @@ unless -> in which case we remove the spaces."
   (local-set-key "(" 'freerdp-electric-paren-open)
   (local-set-key ")" 'freerdp-electric-paren-close))

+(defun freerdp-style-mode-off ()
+  (interactive)
+  (setf indent-tabs-mode nil
+        tab-width        4)
+  (dolist (chord '("," "=" ">" "<" "+" "-" "&" "|"
+                   "*" "/" "%" "^" "{" "}" "(" ")"))
+    (local-unset-key chord)))
+
+
 (provide 'freerdp-c-style)
 ;;;; THE END ;;;;
ViewGit