• 在文稿会议中采用动 the模式,我怎么能够把电动带至,在文稿中展示其信息,而不是试图与X沟通?
23名女运动员在各种环境中工作,包括Debian和Utu。
页: 1
X windows are not in use or not initialized
是的,我知道;在没有X的SSH联系的情况下,Emacs正在运行。 因此,我伤残了智商联合会使用Flymake。 我怎么能够告诉Flymake not,以尝试使用全球倡议,而用
• 在文稿会议中采用动 the模式,我怎么能够把电动带至,在文稿中展示其信息,而不是试图与X沟通?
23名女运动员在各种环境中工作,包括Debian和Utu。
页: 1
X windows are not in use or not initialized
是的,我知道;在没有X的SSH联系的情况下,Emacs正在运行。 因此,我伤残了智商联合会使用Flymake。 我怎么能够告诉Flymake not,以尝试使用全球倡议,而用
我先发现“tooltip”错误电文是一纸空文,因此,我可在我的<代码>.emac显示在小型布图中显示<代码>flymake错误电文。 这是我从某个地方拿走的。 简称flymake-cursor.el
。 信贷属于首次撰写的章节。 你们不需要专门针对灰色工具I使用的粉碎机。 主要职能是show-fly-err-at-point
,使你能够利用你的经常曲线对电文进行控制。
;; License: Gnu Public License
;;
;; Additional functionality that makes flymake error messages appear
;; in the minibuffer when point is on a line containing a flymake
;; error. This saves having to mouse over the error, which is a
; ; keyboard user s annoyance
;;flymake-ler(file line type text &optional full-file)
(defun show-fly-err-at-point ()
"If the cursor is sitting on a flymake error, display the
message in the minibuffer"
(interactive)
(let ((line-no (line-number-at-pos)))
(dolist (elem flymake-err-info)
(if (eq (car elem) line-no)
(let ((err (car (second elem))))
(message "%s" (fly-pyflake-determine-message err)))))))
(defun fly-pyflake-determine-message (err)
"pyflake is flakey if it has compile problems, this adjusts the
message to display, so there is one ;)"
(cond ((not (or (eq major-mode Python) (eq major-mode python-mode) t)))
((null (flymake-ler-file err))
;; normal message do your thing
(flymake-ler-text err))
(t ;; could not compile err
(format "compile error, problem on line %s" (flymake-ler-line err)))))
(defadvice flymake-goto-next-error (after display-message activate compile)
"Display the error in the mini-buffer rather than having to mouse over it"
(show-fly-err-at-point))
(defadvice flymake-goto-prev-error (after display-message activate compile)
"Display the error in the mini-buffer rather than having to mouse over it"
(show-fly-err-at-point))
(defadvice flymake-mode (before post-command-stuff activate compile)
"Add functionality to the post command hook so that if the
cursor is sitting on a flymake error the error information is
displayed in the minibuffer (rather than having to mouse over
it)"
(set (make-local-variable post-command-hook)
(cons show-fly-err-at-point post-command-hook)))
这里基本上讲到Nufal Ibrahim的答案,但粉碎部分已经拆除。 更具体地说,Im直接使用飞速-ler-文本,以提取该错误的部分案文。 我只用yl子审判。 象一个药店一样。
;; show error in the mini buffer instead of in the menu.
;; flymake-ler(file line type text &optional full-file)
(defun show-fly-err-at-point ()
"If the cursor is sitting on a flymake error, display the message in the minibuffer"
(interactive)
(let ((line-no (line-number-at-pos)))
(dolist (elem flymake-err-info)
(if (eq (car elem) line-no)
(let ((err (car (second elem))))
(message "%s" (flymake-ler-text err)))))))
(defadvice flymake-goto-next-error (after display-message activate compile)
"Display the error in the mini-buffer rather than having to mouse over it"
(show-fly-err-at-point))
(defadvice flymake-goto-prev-error (after display-message activate compile)
"Display the error in the mini-buffer rather than having to mouse over it"
(show-fly-err-at-point))
(defadvice flymake-mode (before post-command-stuff activate compile)
"Add functionality to the post command hook so that if the
cursor is sitting on a flymake error the error information is
displayed in the minibuffer (rather than having to mouse over
it)"
(set (make-local-variable post-command-hook)
(cons show-fly-err-at-point post-command-hook)))
完善先前的解决办法。 使错误信息更像理论信息。 电文不会在电文中封顶,电文不会浮,电文不会阻挡其他产出。 采用灵活的范围变量而不是全球变量。
Requires emacs 24. I believe the lexical binding comment must go at the top of your file.
I don t have an independent repository for this, but the most up to date version can be got from my emacs config on github.
;;; -*- lexical-binding: t -*-
;; Make flymake show eldoc style error messages.
(require eldoc)
(defun c5-flymake-ler-at-point ()
(caar (flymake-find-err-info flymake-err-info (line-number-at-pos))))
(defun c5-flymake-show-ler (ler)
(when ler
;; Don t log message.
(let ((message-log-max nil))
(message (flymake-ler-text ler)))))
(let ((timer nil)
(ler nil))
(defalias c5-flymake-post-command-action (lambda ()
(when timer
(cancel-timer timer)
(setq timer nil))
(setq ler (c5-flymake-ler-at-point))
(when ler
(setq timer (run-at-time "0.9 sec" nil
(lambda ()
(when (let ((eldoc-mode t))
(eldoc-display-message-p))
(c5-flymake-show-ler ler))))))))
(defalias c5-flymake-pre-command-action (lambda ()
(when (let ((eldoc-mode t)) (eldoc-display-message-no-interference-p))
(c5-flymake-show-ler ler)))))
(defadvice flymake-mode (before c5-flymake-post-command activate compile)
(add-hook post-command-hook c5-flymake-post-command-action nil t)
(add-hook pre-command-hook c5-flymake-pre-command-action nil t))
(defadvice flymake-goto-next-error (after display-message activate compile)
(c5-flymake-show-ler (c5-flymake-ler-at-point)))
(defadvice flymake-goto-prev-error (after display-message activate compile)
(c5-flymake-show-ler (c5-flymake-ler-at-point)))
您可以下载一个更完整的<代码>flymake-cursor.el:
它有一些最优化之处,确保它能够高速度在你治疗时向你们的小型面包店铺垫。
When working in Unix with various programming languages I often use Kate as my primary editor. It has a really nice function of being able to open a built-in terminal window which is quite useful. ...
Consider the following: me@mine:~$ cat a.sh #!/bin/bash echo "Lines: " $LINES echo "Columns: " $COLUMNS me@mine:~$ ./a.sh Lines: Columns: me@mine:~$ echo "Lines: " $LINES Lines: 52 me@mine:~$ ...
Is there any way to show compilation errors in colors on the terminal? I mean when we do "g++ filename.cpp", is there a way to show the compiler messages in colors? By default it is always in Black ...
I am running my java application where i have used threads... i am running this application using ant command on the terminal.. But when i close my terminal or press ctrl+c,then java program which was ...
My configuration is windows server 2003 (i m logged in with admin privileges), office 2003, vtso runtime 2005 se. After installing my addin, all registry keys are in the correct locations and I have ...
For those who are using vim/emacs/terminals,etc (ie, not an IDE proper) what sort of projects are you working on? Are they big? Production? Are these the tools you use at work? Or mostly for smaller ...
How do I get the terminal size in Go. In C it would look like this: struct ttysize ts; ioctl(0, TIOCGWINSZ, &ts); But how to i access TIOCGWINSZ in Go
I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...