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

系统 Linux
可以用最新的 Ubuntu cvs版的,这样需要从 Ubuntu cvs上下代码了,此时需要做一些准备工作代码:sudo apt-get install ssh Ubuntu cvs texinfo然后到 Ubuntu cvs服务器上下载最新的代码,先进入自己家目录代码。

在向大家详细介绍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.编译先配置一些编译环境代码:

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

用下面的方法编译代码:

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

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

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

3.初步配置

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

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

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

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

以上介绍Ubuntu cvs系统。

【编辑推荐】

  1. Ubuntu安裝環境各種奇奇怪怪的事情
  2. Ubuntu apache安装著名的开源http服务端
  3. Ubuntu IBM将强化Web 2.0功能
  4. Ubuntu mysql可以把data防止到内存盘中
  5. Ubuntu FOSS开发者具有特权优势
责任编辑:佚名 来源: csdn
相关推荐

2013-08-26 17:17:37

Ubuntu 12.0

2009-12-31 11:09:36

Ubuntu wine

2022-05-26 10:28:59

Ubuntu桌面

2023-11-19 19:01:53

UbuntuCalibre

2012-04-11 10:28:19

LinuxUbuntu 12.0

2021-01-07 16:37:44

微信小程序漏洞

2011-01-10 10:29:27

Ubuntu 10.1Gnome-Shell

2010-06-08 10:15:45

opensuse 11

2012-05-25 10:00:46

Ubuntu 12.0Linux

2020-02-25 20:50:38

UbuntuLinuxGit

2011-06-07 15:19:19

PuppetUbuntu

2020-08-14 13:50:13

UbuntuHandbrakeLinux

2012-05-09 08:55:41

Windows 8 R微软

2023-07-19 15:57:25

blendOSLinux

2010-05-21 15:46:41

Google Code

2020-12-16 10:20:35

苹果 iOS系统

2009-09-10 09:06:06

思科CCNP认证教材思科CCNP认证

2009-04-06 08:22:57

2009-04-03 08:43:57

点赞
收藏

51CTO技术栈公众号