emacs configuration short examination room

(set-background-color "gray15")
(set-foreground-color "gray")
;;设置颜色

(global-set-key [f9] 'compile-file)
(global-set-key [f10] 'gud-gdb)
(global-set-key [f11] 'run)
(global-set-key (kbd "C-s") 'save-buffer)
(global-set-key (kbd "C-a") 'mark-whole-buffer)
(global-set-key (kbd "RET") 'indent-and-NEWLINE) 
;; hotkeys 

(setq default -cursor-type ' bar) 
(setq default-width-Tab . 4 ) 
(C setq -default-style " awk " ) 
;; set the appearance 

(SET -frame- Parameter (Selected-Frame) ' Alpha (List 85 50)) 
;; set transparency 

(defun the compile - File () (Interactive) 
(Save - Buffer) 
(the compile (the format " G ++ -o'% S ''% S '- -Wall LM " 
( File -name-Sans-Extension (Buffer-name)) (Buffer- name)))) 
;; compile condition


(defun RUN () (Interactive) 
(the Save - Buffer) 
(the compile (format " ./%s " 
( File -name-Sans-Extension (Buffer-name)) (Buffer- name)))) 
;; operating conditions 

( CUA - MODE T) 
;; Windows shortcut 

(Show -paren- MODE T) 
(Global -linum- MODE T) 
;; matching brackets provided and line number 

(setq the kill -RING-max 200 is ) 
;; setting step revocation

Near CSP J / S, and everyone on here service 233

Guess you like

Origin www.cnblogs.com/Ice-watermelon233/p/CSP_emacs.html