;; 指针颜色设置为白色
(set-cursor-color "white")
;; 鼠标颜色设置为白色
(set-mouse-color "black")
;; 设置背景颜色和字体颜色
(set-foreground-color "black")
(set-background-color "#E3EDCD")
;; 设置另外一些颜色:语法高亮显示的背景和主题,区域选择的背景和主题,二次选择的背景和选择
(set-face-foreground 'highlight "white")
(set-face-background 'highlight "blue")
(set-face-foreground 'region "cyan")
(set-face-background 'region "blue")
(set-face-foreground 'secondary-selection "skyblue")
(set-face-background 'secondary-selection "darkblue")
;语法高亮
(global-font-lock-mode t)
;;外观设置
;;去掉工具栏
(tool-bar-mode nil)
;;设置编码格式
(prefer-coding-system 'utf-8)
;;; --- 列数限制
(setq modelinepos-column-limit 80) ;设置列数限制, 并在mode-line上显示
;; 可以保存你上次光标所在的位置
(require 'saveplace)
(setq-default save-place t)
(cua-mode t)
;;高亮显示c语言的变量类型
(require 'ctypes) ;;暂时没看出效果
(setq ctypes-write-types-at-exit t)
(ctypes-read-file nil nil t t)
;;Buffer管理
;; 按下C-x k立即关闭掉当前的buffer
(global-set-key (kbd "C-x k") 'kill-this-buffer)
(set-cursor-color "white")
;; 鼠标颜色设置为白色
(set-mouse-color "black")
;; 设置背景颜色和字体颜色
(set-foreground-color "black")
(set-background-color "#E3EDCD")
;; 设置另外一些颜色:语法高亮显示的背景和主题,区域选择的背景和主题,二次选择的背景和选择
(set-face-foreground 'highlight "white")
(set-face-background 'highlight "blue")
(set-face-foreground 'region "cyan")
(set-face-background 'region "blue")
(set-face-foreground 'secondary-selection "skyblue")
(set-face-background 'secondary-selection "darkblue")
;语法高亮
(global-font-lock-mode t)
;;外观设置
;;去掉工具栏
(tool-bar-mode nil)
;;设置编码格式
(prefer-coding-system 'utf-8)
;;; --- 列数限制
(setq modelinepos-column-limit 80) ;设置列数限制, 并在mode-line上显示
;; 可以保存你上次光标所在的位置
(require 'saveplace)
(setq-default save-place t)
(cua-mode t)
;;高亮显示c语言的变量类型
(require 'ctypes) ;;暂时没看出效果
(setq ctypes-write-types-at-exit t)
(ctypes-read-file nil nil t t)
(ctypes-auto-parse-mode 1)
; 最大化窗口: 19 寸
(add-to-list 'default-frame-alist '(width . 177))
(add-to-list 'default-frame-alist '(height . 51))
(add-to-list 'default-frame-alist '(top . 0))
(add-to-list 'default-frame-alist '(left . 0))
; 最大化窗口: 10 寸
;; (add-to-list 'default-frame-alist '(width . 125))
;; (add-to-list 'default-frame-alist '(height . 32))
;; (add-to-list 'default-frame-alist '(top . 0))
;; (add-to-list 'default-frame-alist '(left . 0))
(add-to-list 'default-frame-alist '(width . 177))
(add-to-list 'default-frame-alist '(height . 51))
(add-to-list 'default-frame-alist '(top . 0))
(add-to-list 'default-frame-alist '(left . 0))
; 最大化窗口: 10 寸
;; (add-to-list 'default-frame-alist '(width . 125))
;; (add-to-list 'default-frame-alist '(height . 32))
;; (add-to-list 'default-frame-alist '(top . 0))
;; (add-to-list 'default-frame-alist '(left . 0))
;;Buffer管理
;; 按下C-x k立即关闭掉当前的buffer
(global-set-key (kbd "C-x k") 'kill-this-buffer)