• <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>

            思勤無(wú)邪

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

               :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
              132 Posts :: 1 Stories :: 178 Comments :: 0 Trackbacks

            公告

                 吾日常三省吾身,曰思、曰勤、曰無(wú)邪。

            積分與排名

            • 積分 - 183658
            • 排名 - 141

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

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

            ;;;; 顯示行號(hào):
            (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")

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

            ;;;; 關(guān)閉啟動(dòng)畫面
            (setq inhibit-startup-message t)

            ;;;;設(shè)置大的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++語(yǔ)言啟動(dòng)時(shí)自動(dòng)加載semantic對(duì)/usr/include的索引數(shù)據(jù)庫(kù)
            (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過(guò)多
            (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公共設(shè)置
            (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)
              ;;預(yù)處理設(shè)置
              (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 語(yǔ)言設(shè)置
            (defun my-c-mode-hook ()
              (c-set-style "cc-mode"))
            (add-hook 'c-mode-hook 'my-c-mode-hook)

            ;; C++設(shè)置
            (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)

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

            ;;;; Python Mode設(shè)置
            ;(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 思勤無(wú)邪 閱讀(1172) 評(píng)論(0)  編輯 收藏 引用

            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            亚洲国产精品嫩草影院久久| 久久精品中文字幕久久| 国产日韩久久久精品影院首页| 亚洲αv久久久噜噜噜噜噜| 久久精品中文字幕一区| 国产精品久久久久久久久软件| 一本色道久久综合| 亚洲AV日韩精品久久久久久| 色婷婷久久综合中文久久蜜桃av| 日产精品久久久一区二区| 久久精品亚洲精品国产色婷| 99久久精品国产高清一区二区| 久久综合狠狠色综合伊人| 精品久久久久久国产免费了| 免费一级做a爰片久久毛片潮| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 久久精品国产男包| 亚洲AV乱码久久精品蜜桃| 成人综合伊人五月婷久久| 97精品伊人久久久大香线蕉 | 精品久久久久久国产三级| 日本高清无卡码一区二区久久| 伊人久久大香线蕉综合Av | 国产精品天天影视久久综合网| 伊人丁香狠狠色综合久久| 最新久久免费视频| 国产综合久久久久| 中文字幕无码久久人妻| 久久福利青草精品资源站免费| 久久这里只有精品视频99| 国内精品久久久久伊人av| 久久亚洲国产成人影院网站| 久久99国产精品尤物| 无码人妻久久一区二区三区蜜桃| 欧美亚洲色综久久精品国产| 久久久精品人妻无码专区不卡| 少妇久久久久久被弄高潮| 久久精品亚洲精品国产欧美| 97久久超碰成人精品网站| 亚洲精品99久久久久中文字幕 | 亚洲香蕉网久久综合影视|