* C# mode on Linux: flymake inactive
@ 2014-11-22 18:46 torys.anderson
2014-11-23 0:37 ` Leo Liu
0 siblings, 1 reply; 2+ messages in thread
From: torys.anderson @ 2014-11-22 18:46 UTC (permalink / raw)
To: emacs list
I am trying to develop C# applications on Linux and have installed CSharp-mode and Flymake as per all the direction here: http://www.emacswiki.org/emacs/CSharpMode
I have the following code in my .emacs for initialization:
(autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t)
(setq auto-mode-alist (append '(("\\.cs$" . csharp-mode)) auto-mode-alist))
;; Custom code to use a default compiler string for all C# files
(defvar my-csharp-default-compiler nil)
(setq my-csharp-default-compiler "gmcs @@FILE@@")
(defun my-csharp-get-value-from-comments (marker-string line-limit)
my-csharp-default-compiler)
(add-hook 'csharp-mode-hook (lambda ()
(if my-csharp-default-compiler
(progn
(fset 'orig-csharp-get-value-from-comments
(symbol-function 'csharp-get-value-from-comments))
(fset 'csharp-get-value-from-comments
(symbol-function 'my-csharp-get-value-from-comments))))
(flymake-mode)))
(add-hook 'csharp-mode-hook
(lambda ()
(local-set-key (kbd "{") 'c-electric-brace)))
If I make a little demo program I am able to simply compile and run it with `gmcs myfile.cs` and `mono myfile.exe`. However, Flymake mode does absolutely nothing; no errors, no popups, no syntax checking. Although my mode-line indicates Flymake is running (with no exception marks), absolutely nothing happens. Any suggestions on how to get it working?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C# mode on Linux: flymake inactive
2014-11-22 18:46 C# mode on Linux: flymake inactive torys.anderson
@ 2014-11-23 0:37 ` Leo Liu
0 siblings, 0 replies; 2+ messages in thread
From: Leo Liu @ 2014-11-23 0:37 UTC (permalink / raw)
To: help-gnu-emacs
On 2014-11-22 13:46 -0500, torys.anderson@gmail.com wrote:
> Flymake mode does absolutely nothing
See flymake-allowed-file-name-masks and add csharp there accordingly.
Leo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-23 0:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-22 18:46 C# mode on Linux: flymake inactive torys.anderson
2014-11-23 0:37 ` Leo Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).