![]() (add-to-list 'initial-frame-alist '(width. (setq-default scroll-step 1) keyboard scroll one line at a time (setq-default mouse-wheel-follow-mouse 't) scroll window under mouse (setq-default mouse-wheel-progressive-speed nil) don't accelerate scrolling Scroll one line at a time (less "jumpy" than defaults ) (setq-default mouse-wheel-scroll-amount '(1 ((shift). (global-set-key (kbd "M-g") 'goto-line ) From (setq linum-disabled-modes-list ' (eshell-modeĭoc-view-mode )) (defun linum-on () (unless (or (minibufferp ) (member major-mode linum-disabled-modes-list ) (and (not (eq (buffer-name ) "*scratch*" )) (string-match "*" (buffer-name )))) (linum-mode 1 ))) (global-linum-mode 1 ) (setq linum-eager nil ) Keybindings linum-mode everywhere, except where it doesn't belong (set-terminal-coding-system 'utf-8 ) (set-selection-coding-system 'utf-8) (set-language-environment 'utf-8 ) (set-default-coding-systems 'utf-8) (setq-default visual-line-fringe-indicators ' (nil nil )) (setq-default word-wrap t ) (setq-default column-number-mode t ) (delete-selection-mode 1 ) (setq-default ispell-program-name "/usr/local/bin/ispell" ) UTF-8 everywhere (add-hook 'text-mode-hook 'turn-on-visual-line-mode) (if (boundp 'aquamacs-version ) (tabbar-mode 0 )) (set-scroll-bar-mode 'right) (add-hook 'before-save-hook 'delete-trailing-whitespace) You might also find that answer helpful, since their situation is similar to yours.(set-face-attribute 'default nil :height 140) This advice is heavily based on this answer from someone else using flymake on Windows for PHP. (get-cmdline-f 'my-flymake-get-php-cmdline))) (file-relative-name temp (file-name-directory buffer-file-name)))) (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) ![]() Then modifying the flymate-php-init you're using now into this: (defun flymake-php-init () Or the path to the PHP CLI executable on the Ubuntu machine you mentioned. "Gets the command line invocation needed for running a flymake emacs: (defun my-flymake-get-php-cmdline (source base-dir) One way you could do this is by adding the following defun to your. Try adding an explicit hint about where to find PHP. It looks like flymake can't find the PHP interpreter. I have now tried this in ubuntu 12.04 as well and receive the same error. (define-key php-mode-map ' 'flymake-goto-next-error) (define-key php-mode-map ' 'flymake-goto-prev-error) (add-hook 'php-mode-hook (lambda () (flymake-mode 1))) (add-to-list 'flymake-allowed-file-name-masks '("\\.engine$" flymake-php-init)) (add-to-list 'flymake-allowed-file-name-masks '("\\.inc$" flymake-php-init)) (add-to-list 'flymake-allowed-file-name-masks '("\\.install$" flymake-php-init)) ![]() (add-to-list 'flymake-allowed-file-name-masks '("\\.module$" flymake-php-init)) ![]() (add-to-list 'flymake-allowed-file-name-masks '("\\.php$" flymake-php-init)) (local (file-relative-name temp (file-name-directory buffer-file-name)))) (let* ((temp (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) "Use php to check the syntax of the current file." (add-hook 'sgml-mode-hook 'zencoding-mode) Auto-start on any markup modes (global-set-key 'flymake-goto-next-error) (global-set-key 'flymake-display-err-menu-for-current-line) (add-to-list 'load-path "C:/Users/renshaw family/AppData/Roaming/.emacs.d/elpa/flymake-0.4.11") This is the currently relevant part of my. There is an article which highlights this error but it is referring to checking /etc in linux however I am on windows. I am on windows 7 with emacs 24 GNU Emacs 24.1.1 (i386-mingw-nt) Error (flymake): Flymake: Failed to launch syntax check process 'php' with args (-f test_flymake.php -l): Searching for program: no such file or directory, php.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |