.emacs-my
changeset 1529 37b616faabb8
parent 1528 81091a6d400a
child 1530 b4f84f71f7ab
equal deleted inserted replaced
1528:81091a6d400a 1529:37b616faabb8
  1404         (start-process ide-idea-process-bufname nil ide-idea-program "--line" (int-to-string line) fname)
  1404         (start-process ide-idea-process-bufname nil ide-idea-program "--line" (int-to-string line) fname)
  1405       (start-process ide-idea-process-bufname nil ide-idea-program fname))))
  1405       (start-process ide-idea-process-bufname nil ide-idea-program fname))))
  1406 (defun ide-idea-open-this-buffer ()
  1406 (defun ide-idea-open-this-buffer ()
  1407   "Open current buffer in Intellij Idea."
  1407   "Open current buffer in Intellij Idea."
  1408   (interactive)
  1408   (interactive)
  1409   (unless (and (stringp (buffer-file-name) (file-regular-p (buffer-file-name))))
  1409   (unless (and (stringp (buffer-file-name)) (file-regular-p (buffer-file-name)))
  1410     (error "Buffer have no association with a file"))
  1410     (error "Buffer have no association with a file"))
  1411   (ide-idea-open-file (buffer-file-name) (line-number-at-pos)))
  1411   (ide-idea-open-file (buffer-file-name) (line-number-at-pos)))
  1412 
  1412 
  1413 (define-key global-map [s-n] 'ide-netbeans-open-this-buffer)
  1413 (define-key global-map [?\s-n] 'ide-netbeans-open-this-buffer)
  1414 (define-key global-map [s-i] 'ide-idea-open-this-buffer)
  1414 (define-key global-map [?\s-i] 'ide-idea-open-this-buffer)
  1415 
  1415 
  1416 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1416 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1417 (message "calendar")
  1417 (message "calendar")
  1418 
  1418 
  1419 (eval-when 'compile (require 'calendar))
  1419 (eval-when 'compile (require 'calendar))