.emacs-my
changeset 1172 e13ab3bb9331
parent 1167 0e8b45e9b09f
child 1173 bf65579bd653
equal deleted inserted replaced
1167:0e8b45e9b09f 1172:e13ab3bb9331
  2460     (switch-to-buffer new-buffer)
  2460     (switch-to-buffer new-buffer)
  2461     (shell-command-on-region (point-min) (point-max) "sort -u" nil t)
  2461     (shell-command-on-region (point-min) (point-max) "sort -u" nil t)
  2462     ))
  2462     ))
  2463 
  2463 
  2464 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2464 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2465 (message "C, c-mode, C++, c++-mode")
  2465 (message "c-mode, cc-mode, c++-mode")
  2466 
  2466 
  2467 ;; Minor mode that highlights suspicious C and C++ constructions.
  2467 ;; Minor mode that highlights suspicious C and C++ constructions.
  2468 (cwarn-mode 1)
  2468 (global-cwarn-mode 1)
  2469 
  2469 
  2470 (setq c-echo-syntactic-information-p t)
  2470 (setq c-echo-syntactic-information-p t)
  2471 
  2471 
  2472 (defun my-c-mode-common-hook ()
  2472 (defun my-c-mode-common-hook ()
  2473   ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon.
  2473   ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon.