all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: torys.anderson@gmail.com
To: emacs list <help-gnu-emacs@gnu.org>
Subject: C# mode on Linux: flymake inactive
Date: Sat, 22 Nov 2014 13:46:52 -0500	[thread overview]
Message-ID: <87bnnz9ioz.fsf@gmail.com> (raw)

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? 



             reply	other threads:[~2014-11-22 18:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-22 18:46 torys.anderson [this message]
2014-11-23  0:37 ` C# mode on Linux: flymake inactive Leo Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnnz9ioz.fsf@gmail.com \
    --to=torys.anderson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.