doomemacs/core/core-os.el

29 lines
837 B
EmacsLisp
Raw Normal View History

2016-05-23 11:09:49 +08:00
;;; core-os.el
2016-05-24 05:12:41 +08:00
(defconst IS-MAC (eq system-type 'darwin))
(defconst IS-LINUX (eq system-type 'gnu/linux))
(defconst IS-WINDOWS (eq system-type 'windows-nt))
2016-10-03 05:29:51 +08:00
(setq
;; Use a shared clipboard
x-select-enable-clipboard t
select-enable-clipboard t
;; Treat clipboard input as UTF-8 string first; compound text next, etc.
x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
2016-05-24 05:12:41 +08:00
;; Stubs, these should be defined in all OS modules
(noop! doom-open-with (&optional app-name path))
2016-10-03 05:29:51 +08:00
(noop! os-open-in-browser)
2016-05-24 05:12:41 +08:00
(noop! os-open-in-default-program)
(noop! os-reveal)
(noop! os-reveal-project)
2016-10-03 05:29:51 +08:00
(noop! os-switch-to-term)
(noop! os-switch-to-term-and-cd)
2016-05-23 11:09:49 +08:00
(cond (IS-MAC (require 'core-os-osx))
2016-05-24 05:12:41 +08:00
(IS-LINUX (require 'core-os-linux))
(IS-WINDOWS (require 'core-os-win32)))
2016-05-23 11:09:49 +08:00
(provide 'core-os)
;;; core-os.el ends here