File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,19 @@ This function is called at the very end of Spacemacs initialization after
87
87
layers configuration. You are free to put any user code.
88
88
#+end_quote
89
89
** IDE config
90
+ *** Apply ANSI Color codes for buffer and region
91
+ #+BEGIN_SRC emacs-lisp :tangle user-config.el
92
+ (defun apply-ansi-color-codes-to-region (beginning end)
93
+ "Apply ANSI color codes to the selected region."
94
+ (interactive "r")
95
+ (ansi-color-apply-on-region beginning end))
96
+
97
+ (defun apply-ansi-color-codes-to-buffer ()
98
+ "Apply ANSI color codes to the whole buffer."
99
+ (interactive)
100
+ (apply-ansi-color-codes-to-region (point-min) (point-max)))
101
+ #+END_SRC
102
+
90
103
*** Disable auto-indent in C/C++ mode after typing ~::~
91
104
#+BEGIN_SRC emacs-lisp :tangle user-config.el
92
105
;; Disable electric indentation in C and C++ modes
You can’t perform that action at this time.
0 commit comments