文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Ubuntu cvs可以用最新版版上下代码了

Ubuntu cvs可以用最新版版上下代码了

时间:2010-09-16  来源:mydear

在向大家详细介绍Ubuntu cvs之前,首先让大家了解下Ubuntu cvs,然后全面介绍Ubuntu cvs,希望对大家有用。

1.下载源代码

可以用最新的 Ubuntu cvs版的,这样需要从 Ubuntu cvs上下代码了,此时需要做一些准备工作代码:sudo apt-get install ssh Ubuntu cvs texinfo然后到 Ubuntu cvs服务器上下载最新的代码,先进入自己家目录代码:export Ubuntu cvs_RSH="ssh"Ubuntu cvs -z3 -d:pserver:anonymous@Ubuntu cvs.sv.gnu.org:/Ubuntu cvsroot/emacs co -r emacs-unicode-2 emacs

2.编译先配置一些编译环境代码:

  1. sudo apt-gt install build-essential
  2. sudo apt-get build-dep emacs21
  3. sudo apt-get install xserver-xorg-dev
  4. sudo apt-get install xorg-dev
  5. sudo apt-get install libncurses5 libncurses5-dev

用下面的方法编译代码:

./configure –prefix=/usr –with-x-toolkit=gtk

如果这一步报错,很可能是因为没有安装 gtk2的开发包,那就安装吧。( sudo apt-get install libgtk2.0-dev)
同时根据报错的提示来安装其他的dev包。

  1. make bootstrap
  2. make info
  3. sudo make install

3.初步配置

首先是中文字体,ubuntu下默认的 emacs 的字体太让人不爽了,我们可以在 .Xresources中设定。将下面的代码放到你的 ~/.Xresources中,没有这个文件的话就新建一个。
代码:

  1. EEmacs.FontBackend: xft
  2. Xft.dpi: 98
  3. Xft.hinting: None

写好后用 xrdb -load ~/.Xresources 然后重启动Emacs。

  1. 我的.emacs文件:
  2. (custom-set-variables
  3. ;; custom-set-variables was added by Custom.
  4. ;; If you edit it by hand, you could mess it up, so be careful.
  5. ;; Your init file should contain only one such instance.
  6. ;; If there is more than one, they won't work right.
  7. '(auto-compression-mode nil)
  8. '(auto-image-file-mode t)
  9. '(auto-save-default nil)
  10. '(compile-command "make")
  11. '(default-major-mode (quote text-mode))
  12. '(display-time-mode t)
  13. '(ido-mode (quote buffer) nil (ido))
  14. '(imenu-sort-function (quote imenu--sort-by-name))
  15. '(inhibit-startup-screen t)
  16. '(make-backup-files nil)
  17. '(scroll-bar-mode nil)
  18. '(scroll-conservatively 10000)
  19. '(setq calendar-location-name)
  20. '(show-paren-mode t)
  21. '(tab-width 4)
  22. '(text-mode-hook (quote (text-mode-hook-identify)))
  23. '(visible-bell t)
  24. '(x-select-enable-clipboard t))
  25. (custom-set-faces
  26. ;; custom-set-faces was added by Custom.
  27. ;; If you edit it by hand, you could mess it up, so be careful.
  28. ;; Your init file should contain only one such instance.
  29. ;; If there is more than one, they won't work right.
  30. )
  31. ;; fonts
  32. (set-default-font "Courier:pixelsize=14")
  33. (set-fontset-font "fontset-default" 'unicode '("simsun" . "unicode-bmp"))
  34. ;; keybind
  35. (global-set-key (kbd "C-c SPC") 'set-mark-command)
  36. ;; color-screen (useful for ls)
  37. (setq ansi-color-for-comint-mode t)
  38. ;; Theme
  39. (require 'color-theme)
  40. (cond ((eq window-system 'x) (color-theme-deep-blue)))
  41. ;; MATLAB
  42. (add-to-list 'load-path "/usr/local/matlab/java/extern/EmacsLink/lisp")
  43. (autoload 'matlab-eei-connect "matlab-eei"
  44. "Connects Emacs to MATLAB's external editor interface.")
  45. (autoload 'matlab-mode "matlab" "Enter Matlab mode." t)
  46. (setq auto-mode-alist (cons '(".m'" . matlab-mode) auto-mode-alist))
  47. (autoload 'matlab-shell "matlab" "Interactive Matlab mode." t)
  48. (setq matlab-indent-function t) ; if you want function bodies indented
  49. (setq matlab-verify-on-save-flag nil) ; turn off auto-verify on save
  50. (defun my-matlab-mode-hook ()
  51. (setq fill-column 76)
  52. (imenu-add-to-menubar "Find")) ; where auto-fill should wrap
  53. (add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
  54. ;; CC mode
  55. (defun my-ccmode-common-hook ()
  56. (define-key c-mode-base-map "C-m" 'c-context-line-break)
  57. (c-toggle-auto-state)
  58. (c-toggle-auto-hungry-state 1)
  59. (which-function-mode))
  60. (add-hook 'c-initialization-hook 'my-ccmode-common-hook)
  61. (setq c-basic-offset 2)
  62. (setq c-default-style '(
  63. (c-mode . "k&r")
  64. (c++-mode . "stroustrup")
  65. (java-mode . "java")
  66. (awk-mode . "awk")
  67. (python-mode . "python")
  68. (other . "linux")))
  69. ;; xcscope
  70. (require 'xcscope)
  71. ; auctex
  72. ;(load "auctex.el" nil t t)
  73. ;(load "preview-latex.el" nil t t)
  74. ; w3m
  75. (require 'w3m-load)
  76. ; sdcv
  77. (require 'sdcv-mode)
  78. (global-set-key (kbd "C-c d") 'sdcv-search)

以上介绍Ubuntu cvs系统。


相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载