This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'flymake) | |
(require 'd-mode) | |
(defun flymake-D-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) | |
(local-file (file-relative-name | |
temp-file | |
(file-name-directory buffer-file-name))) | |
(opts_ (concat (file-name-directory buffer-file-name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum COLOR : byte { BLANK, BLACK, WHITE }; | |
enum TYPE : byte { NA, MAN, KING }; | |
struct Piece { | |
COLOR color; TYPE type; | |
string toString() { | |
if (color == COLOR.BLANK) | |
return "."; | |
if (color == COLOR.WHITE) | |
return (type == TYPE.MAN) ? "w" : "W"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; d-mode.el --- D Programming Language mode for (X)Emacs | |
;;; Requires a cc-mode of version 5.30 or greater | |
;; Author: 2007 William Baxter | |
;; Contributors: Andrei Alexandrescu | |
;; Maintainer: William Baxter | |
;; Created: March 2007 | |
;; Version: 2.0.4 (February 2008) | |
;; Keywords: D programming language emacs cc-mode |