Created
January 22, 2013 23:28
-
-
Save cosmo0920/4599840 to your computer and use it in GitHub Desktop.
カーネルのバージョンを取ってくるELisp
This file contains hidden or 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
(defun kernel-version()(replace-regexp-in-string "\n+$" "" (shell-command-to-string "uname -r"))) | |
(message "kernel version is %s" (kernel-version)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment