- Evitar XCode en cuanto sea posible. Solo se usa xcodebuild si se tocaron fuentes C/Obj-C.
- Comandos y funciones de conveniencia para iniciar y controlar RR desde Emacs.
- Forma fácil de evaluar chunks y expresiones en el contexto del RR desde Emacs.
- Chequeo básico de sintaxis antes de largar el juego y mientras se edita un archivo.
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
;; lua mode | |
(autoload #'lua-mode "lua-mode") | |
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) | |
(setq-default lua-default-application "telnet") | |
(setq-default lua-default-command-switches (list "localhost" "9000")) | |
(autoload #'flymake-lua-setup "flymake-lua" nil t) | |
;; (setq lua-prompt-regexp "[^\n]*\\(K>?[\t ]+\\)+$") | |
(eval-after-load 'lua-mode | |
'(progn |
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
http = require("socket.http") | |
ltn12 = require("ltn12") | |
function fsize (file) | |
local current = file:seek() -- get current position | |
local size = file:seek("end") -- get file size | |
file:seek("set", current) -- restore position | |
return size | |
end |
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 xiangs-command (name age) | |
(interactive "sWhat's your name? \nnHow old are you? ") | |
(message (format "Your name is %s and you're %d years old" name age))) | |
;; M-x xiangs-command |
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
K> require "LispInterpreter" | |
K> ok, value = pcall(Lisp.evalExpr, Lisp.getGlobalEnv(), '((lambda (x) (+ x 2)) 10)') | |
ok, value = pcall(Lisp.evalExpr, Lisp.getGlobalEnv(), '((lambda (x) (+ x 2)) 10)') | |
K> print(value) | |
print(value) | |
atom[type=NUM, lex="12"] | |
K> |
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
(defadvice shell (around prevent-remote-shells-from-tramp compile activate) | |
(let ((default-directory (if (file-remote-p default-directory) | |
"~/" default-directory))) | |
ad-do-it)) |
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
function map(fn, t) | |
res={} | |
for k,v in pairs(t) do | |
res[k] = fn(v) | |
end | |
return res | |
end | |
function mapk(fn, t) | |
res={} |
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
system-configuration-options is a variable defined in `C source code'. | |
Its value is | |
" '--with-mac' '--enable-mac-app' '--without-imagemagick' '--with-jpeg' '--with-png' '--with-gnutls' '--prefix=/Users/leo/dev/emacs/build' '--without-dbus'" |
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
;; This buffer is for notes you don't want to save, and for Lisp evaluation. | |
;; If you want to create a file, visit that file with C-x C-f, | |
;; then enter the text in that file's own buffer. | |
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
#include <stdio.h> | |
int main (int argc, char *argv[]) | |
{ | |
printf("hello world!"); | |
} | |
/* Local Variables: */ | |
/* compile-command: "make -k foo && ./foo" */ | |
/* End: */ |