   )
 
 ;; rsense
-(when (require 'rsense nil t)
-  (let (rsense-home (expand-file-name "~/.settings/src/rsense-0.3"))
-    (add-to-list 'load-path (concat rsense-home "/etc"))
-    ))
+(eval-after-load "rsense"
+  '(let ((rsense-home (expand-file-name "~/.settings/src/rsense-0.3")))
+     (add-to-list 'load-path (concat rsense-home "/etc")))
+  )
 
 ;; tabbar-mode
 (when (require 'tabbar nil t)


;; *scratch* 関連
(eval-after-load "markdown-mode"
  (let ()
    ;; *scratch* のときの major-mode
    (setq initial-major-mode 'markdown-mode)


(global-set-key [M-return] 'kui/toggle-fullscreen)
(global-set-key [f11] 'kui/toggle-fullscreen)

;; 実行可能なコマンドを返す
(defun kui/find-if-executable (seq)
  "Find and Return first executable command in SEQ."
  (find-if (lambda (cmd) (executable-find cmd))
           seq))
;; -------------------------------------------------------------------------
;; 便利な感じのマイナーモード

