免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: flw
打印 上一主题 下一主题

有关 Emacs 使用技巧的内容请在这个帖子讨论。 [复制链接]

论坛徽章:
0
441 [报告]
发表于 2006-12-01 21:43 |只看该作者

想问一下,如何在X环境下设置emacs的字体和其颜色呢?能在/etc/X11/目录下找到相应的设置呢?能否直接在emacs
[size]

论坛徽章:
0
442 [报告]
发表于 2006-12-01 21:46 |只看该作者

想问一下,如何在X环境下设置emacs的字体和其颜色呢?能在/etc/X11/目录下找到相应的设置呢?能否直接在emacs中像在MS下直接用M-x mouse-set-font直接设置呢?还望熟悉emacs的朋友能够给出一个建议。

论坛徽章:
0
443 [报告]
发表于 2006-12-03 09:56 |只看该作者
原帖由 unixer2i 于 2006-12-1 21:46 发表

想问一下,如何在X环境下设置emacs的字体和其颜色呢?能在/etc/X11/目录下找到相应的设置呢?能否直接在emacs中像在MS下直接用M-x mouse-set-font直接设置呢?还望熟悉emacs的 ...


check out: color-theme.el

论坛徽章:
0
444 [报告]
发表于 2006-12-04 16:53 |只看该作者
原帖由 lgfang 于 2006-12-3 09:56 发表


check out: color-theme.el


用过color-theme了,这只能设置显示颜色。但问一下,能否在X11环境下设置emacs的字体吗?我指的是不用通过emacs自带的设置功能进行设置。

论坛徽章:
0
445 [报告]
发表于 2006-12-04 17:35 |只看该作者
我在本地windows机器上运行emacs, 现在可以用FTP登录到远程solaris机器, 进行远程文件编辑和保存.
   可是我想知道,如何能登录到远程机器上,执行shell命令.

论坛徽章:
0
446 [报告]
发表于 2006-12-05 14:11 |只看该作者

cygwin下怎样配置emacs才可以把它用做嵌入式开发的IDE

emacs怎样配置才能拥有交叉编译和在线调试的功能呢?
在cygwin下可以实现这种功能么?
我在Windows NT上装了cygwin,它本身带了一个emacs,但是只能是命令行式的
我也不知道怎么把它搞成代码浏览ECB的形式
反正是很糊涂!
请高手指点!

论坛徽章:
0
447 [报告]
发表于 2006-12-06 15:23 |只看该作者

这些问题合答案有整理吗?

现在这个帖子已经跟了45页,里面有很多好的东西。但就是查找起来太不方便了。所以需要版主把对应的问题和答案整理出来。把没有回答的问题也一起整理,这样查找会很方便。

论坛徽章:
0
448 [报告]
发表于 2006-12-06 16:42 |只看该作者
我在windows下面使用emacs. 请问.emacs在哪里啊??

论坛徽章:
0
449 [报告]
发表于 2006-12-06 19:22 |只看该作者
原帖由 redjade 于 2006-12-4 17:35 发表
我在本地windows机器上运行emacs, 现在可以用FTP登录到远程solaris机器, 进行远程文件编辑和保存.
   可是我想知道,如何能登录到远程机器上,执行shell命令.


telnet, windows自带的telnet不行, 建议你装下cygwin
在.emacs下配置:
(setenv "PATH" (concat "C:/cygwin/bin;" (getenv "PATH")))
(setq exec-path (cons "C:/cygwin/bin/" exec-path))
(require 'cygwin-mount)
(cygwin-mount-activate)
(add-hook 'comint-output-filter-functions
                                        'shell-strip-ctrl-m nil t)
(add-hook 'comint-output-filter-functions
                                        'comint-watch-for-password-prompt nil t)
(setq explicit-shell-file-name "bash.exe")
;; For subprocesses invoked via the shell
;; (e.g., "shell -c command")
(setq shell-file-name explicit-shell-file-name)
(require 'telnet)
(defun telnet (host)
  "Open a network login connection to host named HOST (a string).
Communication with HOST is recorded in a buffer `*PROGRAM-HOST*'
where PROGRAM is the telnet program being used.  This program
is controlled by the contents of the global variable
`telnet-host-properties', falling back on the value of the
global variable `telnet-program'. Normally input is edited
in Emacs and sent a line at a time."
  (interactive "sOpen connection to host: ")
  (let* ((comint-delimiter-argument-list '(?\  ?\t))
         (properties (cdr (assoc host telnet-host-properties)))
         (telnet-program (if properties (car properties) telnet-program))
         (name (concat telnet-program "-" (comint-arguments host 0 nil) ))
         (buffer (get-buffer (concat "*" name "*")))
         (telnet-options (if (cdr properties)
                                                                                                                 (cons "-l" (cdr properties))))
         process)
    (if (and buffer (get-buffer-process buffer))
        (pop-to-buffer (concat "*" name "*"))
      (pop-to-buffer
       (apply 'make-comint name telnet-program nil telnet-options))
      (setq process (get-buffer-process (current-buffer)))
      ;;(set-process-filter process 'telnet-initial-filter)
      ;; Don't send the `open' cmd till telnet is ready for it.
      ;;(accept-process-output process)
      (erase-buffer)
      (send-string process (concat "open " host "\n"))
      (telnet-mode)
      (setq telnet-remote-echoes nil)
      (setq telnet-new-line "\n")        ;; needed for cygwin 1.3.11
      (setq comint-input-sender 'telnet-simple-send)
      (setq telnet-count telnet-initial-count)
      (setq comint-process-echoes t)
      )))

论坛徽章:
0
450 [报告]
发表于 2006-12-06 19:24 |只看该作者
然后执行alt+x telnet 输入ip 回车密码回车即可使用, 比什么crt等等有很多优点。ssh也可以类似配置出来
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP