• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            思勤無邪

            上學時,因我年齡最小,個頭也最小,上課時,就像大猩猩堆里的猴一般。如今,這猴偶爾也把最近的一些情況寫在這里。

               :: 首頁 :: 聯系 :: 聚合  :: 管理
              132 Posts :: 1 Stories :: 178 Comments :: 0 Trackbacks

            公告

                 吾日常三省吾身,曰思、曰勤、曰無邪。

            積分與排名

            • 積分 - 183678
            • 排名 - 141

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            ;(require 'color-theme)
            ;(color-theme-initialize)
            ;(color-theme-tty-dark)
            ;(color-theme-comidia)
            ;(color-theme-dark-laptop)

            ;;;; 顯示行號:
            (require 'linum)
            (global-linum-mode t)
            (column-number-mode t)
            (setq column-number-mode t)
            (setq line-number-mode t)

            (set-face-background 'default "black")
            (set-face-foreground 'default "wheat")
            (set-cursor-color "white")

            ;;;; 顯示時間
            (setq display-time-24hr-format t)
            (setq display-time-day-and-date t)
            (display-time)

            ;;;; 關閉啟動畫面
            (setq inhibit-startup-message t)

            ;;;;設置大的kill ring
            (setq kill-ring-max 150)

            (require 'xcscope)

            ;;;;備份策略
            (setq backup-directory-alist '(("" . "~/backup/emacs/backup")))
            (setq-default make-backup-file t)
            (setq make-backup-file t)

            (setq make-backup-files t)
            (setq version-control t)
            (setq kept-old-versions 2)
            (setq kept-new-versions 10)
            (setq delete-old-versions t)


            ;;;;C/C++語言啟動時自動加載semantic對/usr/include的索引數據庫
            (setq semanticdb-search-system-databases t)
              (add-hook 'c-mode-common-hook
                      (lambda ()
                        (setq semanticdb-project-system-databases
                              (list (semanticdb-create-database
                                       semanticdb-new-database-class
                                       "/usr/include")))))

            ;; project root path
            (setq semanticdb-project-roots
                      (list
                    (expand-file-name "/")))
            ;; 避免semantic占用CPU過多
            (setq-default semantic-idle-scheduler-idle-time 432000)

            (defun my-indent-or-complete ()
               (interactive)
               (if (looking-at "\\>")
                      (hippie-expand nil)
                      (indent-for-tab-command)))
            (autoload 'senator-try-expand-semantic "senator")

            (setq hippie-expand-try-functions-list
                      '(
                            senator-try-expand-semantic
                            try-expand-dabbrev
                            try-expand-dabbrev-visible
                            try-expand-dabbrev-all-buffers
                            try-expand-dabbrev-from-kill
                            try-expand-list
                            try-expand-list-all-buffers
                            try-expand-line
                            try-expand-line-all-buffers
                        try-complete-file-name-partially
                        try-complete-file-name
                        try-expand-whole-kill
                    )
            )

            (defun linux-c-mode ()
              "C mode with adjusted defaults for use with the Linux kernel."
              (interactive)
              (c-mode)
              (c-set-style "K&R")
              (setq tab-width 8)
              (setq indent-tabs-mode t)
              (setq c-basic-offset 8))


            ;; c-mode公共設置
            (defun my-c-mode-common-hook ()
              (interactive)
              ;(c-mode)
              ;(c-set-style "K&R")
              (setq tab-width 8)
              (setq indent-tabs-mode t)
              (setq c-basic-offset 8)
              (hs-minor-mode t)

              ;;; hungry-delete and auto-newline
              ;;(c-toggle-auto-hungry-state 1)
              ;;按鍵定義
              (define-key c-mode-base-map [(control \`)] 'hs-toggle-hiding)
              (define-key c-mode-base-map [(return)] 'newline-and-indent)
              (define-key c-mode-base-map [(f7)] 'compile)
              (define-key c-mode-base-map [(f8)] 'ff-get-other-file)
              (define-key c-mode-base-map [(f5)] 'gud-go)
              (define-key c-mode-base-map [(f10)] 'gud-next)
              (define-key c-mode-base-map [(f11)] 'gud-step)
             
              (define-key c-mode-base-map [(meta \`)] 'c-indent-command)
            ;;  (define-key c-mode-base-map [(tab)] 'hippie-expand)
              (define-key c-mode-base-map [(tab)] 'my-indent-or-complete)
              (define-key c-mode-base-map [(meta ?/)] 'semantic-ia-complete-symbol-menu)
              ;;預處理設置
              (setq c-macro-shrink-window-flag t)
              (setq c-macro-preprocessor "cpp")
              (setq c-macro-cppflags " ")
              (setq c-macro-prompt-flag t)
              (setq hs-minor-mode t)
              (setq abbrev-mode t))
            (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

            ;; C 語言設置
            (defun my-c-mode-hook ()
              (c-set-style "cc-mode"))
            (add-hook 'c-mode-hook 'my-c-mode-hook)

            ;; C++設置
            (defun my-c++-mode-hook ()
              (c-set-style "stroustrup"))
            (add-hook 'c++-mode-hook 'my-c++-mode-hook)

            ;;;; CC-mode配置  http://cc-mode.sourceforge.net/
            (require 'cc-mode)
            (c-set-offset 'inline-open 0)
            (c-set-offset 'friend '-)
            (c-set-offset 'substatement-open 0)

            ;;;;根據后綴判斷所用的mode
            ;;;;注意:我在這里把.h關聯到了c++-mode
            (setq auto-mode-alist
                  (append '(("\\.h$" . c++-mode)) auto-mode-alist))

            ;;;; Python Mode設置
            ;(add-to-list 'load-path "/home/caole/lib/emacs-lisp/python-mode-1.0")
            ;(require 'python-mode)
            ;;(require 'pycomplete)
            ;(require 'doctest-mode)

            ;;;; 注釋配置
            ;(load-file "/home/caole/lib/emacs-lisp/gnome-doc.el")



            (custom-set-variables
              ;; custom-set-variables was added by Custom.
              ;; If you edit it by hand, you could mess it up, so be careful.
              ;; Your init file should contain only one such instance.
              ;; If there is more than one, they won't work right.
             '(ecb-layout-window-sizes (quote (("left9" (0.3170731707317073 . 0.9642857142857143)))))
             '(ecb-options-version "2.40"))
            (custom-set-faces
              ;; custom-set-faces was added by Custom.
              ;; If you edit it by hand, you could mess it up, so be careful.
              ;; Your init file should contain only one such instance.
              ;; If there is more than one, they won't work right.
             )
             
            posted on 2010-11-17 20:59 思勤無邪 閱讀(1172) 評論(0)  編輯 收藏 引用
            久久午夜福利无码1000合集| 少妇久久久久久被弄到高潮| 国产成人精品综合久久久| 久久青青草视频| 久久久久久久亚洲Av无码| AAA级久久久精品无码区| 色狠狠久久综合网| 99久久精品免费看国产一区二区三区| 成人精品一区二区久久| 久久午夜伦鲁片免费无码| 国产精品丝袜久久久久久不卡| 国内精品久久久久影院薰衣草 | 久久天天躁夜夜躁狠狠躁2022| 国产精品一久久香蕉国产线看观看 | 99精品久久久久久久婷婷| 久久综合狠狠色综合伊人| 人妻无码中文久久久久专区| 久久国产精品波多野结衣AV| 亚洲国产欧洲综合997久久| 亚洲欧洲久久av| 中文字幕精品无码久久久久久3D日动漫| 日韩精品久久久久久久电影蜜臀| 久久精品国产色蜜蜜麻豆| 久久夜色精品国产| 无码8090精品久久一区| 久久www免费人成看片| 久久无码专区国产精品发布| 狠狠色丁香久久婷婷综合_中| 久久99亚洲综合精品首页| 国产99久久久国产精品~~牛| 久久亚洲高清观看| 色婷婷综合久久久久中文字幕| 人妻无码精品久久亚瑟影视| 无码精品久久久天天影视| 国产亚洲综合久久系列| 久久久青草久久久青草| 久久久这里有精品| 久久播电影网| 久久线看观看精品香蕉国产| 人人狠狠综合久久亚洲高清| 国内精品伊人久久久久|