Skip to content

Instantly share code, notes, and snippets.

View ganta's full-sized avatar
🐤

Hideki Igarashi ganta

🐤
View GitHub Profile
diff --git a/src/nsterm.m b/src/nsterm.m
index 635f737..4aade4a 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3920,6 +3920,8 @@ ns_term_shutdown (int sig)
if (mac_store_change_input_method_event())
{
+ if (!emacs_event)
+ return;
@bric3
bric3 / install_jdk5_post_lion.sh
Last active April 18, 2023 06:50
Automate the install of JDK 5 on Lion, Mountain Lion, Mavericks
# _______ _ _ _ _ _
# |__ __| | (_) (_) | | | |
# | | | |__ _ ___ ___ ___ _ __ _ _ __ | |_ _ __ ___ _____ _____ __| |
# | | | '_ \| / __| / __|/ __| '__| | '_ \| __| | '_ ` _ \ / _ \ \ / / _ \/ _` |
# | | | | | | \__ \ \__ \ (__| | | | |_) | |_ | | | | | | (_) \ V / __/ (_| |
# |_| |_| |_|_|___/ |___/\___|_| |_| .__/ \__| |_| |_| |_|\___/ \_/ \___|\__,_|
# | |
# |_|
#
# New home : https://github.com/bric3/osx-jdk5-installer
@cefstat
cefstat / lion-fullscreen.patch
Created November 10, 2011 19:31
Patch for Emacs fullscreen support under Mac OS X 10.7 (Lion)
=== modified file 'lisp/term/ns-win.el'
--- old/lisp/term/ns-win.el 2011-10-01 20:32:01 +0000
+++ new/lisp/term/ns-win.el 2011-11-10 16:22:51 +0000
@@ -928,6 +928,10 @@
(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces))
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system))
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ())
+(defun ns-toggle-fullscreen ()
+ (interactive)
@waltarix
waltarix / zsh-utf8mac-completion.patch
Created November 29, 2011 04:00
zsh: Completion treats filename that is encoded in UTF-8-MAC as UTF-8.
diff --git a/Src/utils.c b/Src/utils.c
index 26e2a5c..04c3783 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -4244,6 +4244,13 @@ mod_export char *
zreaddir(DIR *dir, int ignoredots)
{
struct dirent *de;
+#ifdef HAVE_ICONV
+ static iconv_t conv_ds = (iconv_t)NULL;
@kontrafiktion
kontrafiktion / patch-path.c.diff
Created February 24, 2012 12:55
subversion unicode-path patch MacPorts svn 1.7.3
--- subversion/libsvn_subr/path.c 2007-05-01 07:21:03.000000000 +0900
+++ subversion/libsvn_subr/path.c 2007-11-04 23:18:05.000000000 +0900
@@ -31,6 +31,9 @@
#include "svn_io.h" /* for svn_io_stat() */
#include "svn_ctype.h"
+#if defined(DARWIN)
+#include <CoreFoundation/CoreFoundation.h>
+#endif /* DARWIN */
@glidenote
glidenote / .zshrc
Created April 14, 2012 00:45
.zshrc for mosh
# mosh
function _mosh_hosts {
local -a config_hosts
local config
integer ind
# If users-hosts matches, we shouldn't complete anything else.
if [[ "$IPREFIX" == *@ ]]; then
_combination -s '[:@]' my-accounts users-hosts "users=${IPREFIX/@}" hosts "$@" && return
else
@nobeans
nobeans / Events.groovy
Created May 31, 2012 04:46
My Grails' Events.groovy
// Variables
def grailsHome = grailsSettings.grailsHome
def baseDir = buildSettings.baseDir.absolutePath
def testReportsDir = grailsSettings.testReportsDir
def failedTests = [:]
// Helper methods
def growlnotify = { priority, title, message, openTarget = null ->
def cmd = [
System.properties["user.home"] + "/.grails/scripts/growlAndOpen.sh",
@paykroyd
paykroyd / lion-fullscreen.patch
Created August 25, 2012 22:32 — forked from cefstat/lion-fullscreen.patch
Patch for Emacs fullscreen support under Mac OS X 10.7 (Lion)
=== modified file 'lisp/term/ns-win.el'
--- old/lisp/term/ns-win.el 2011-10-01 20:32:01 +0000
+++ new/lisp/term/ns-win.el 2011-11-10 16:22:51 +0000
@@ -928,6 +928,10 @@
(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces))
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system))
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ())
+(defun ns-toggle-fullscreen ()
+ (interactive)
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@gaspanik
gaspanik / ST2: User-Preferences.sublime-settings
Created November 17, 2012 03:03
ST2: User-Preferences.Sample
{
"bold_folder_labels": true,
// サイドバーのフォルダ名を太字に
"caret_style": "phase",
// キャレットのスタイルを変える。他に「smooth」「blick」「solid」「wide」など
"disable_formatted_linebreak": true,
// Emmetを有効にすると、日本語変換確定後に文字が消えるのを防ぐ
"disabled_single_snippet_for_scopes": "",
// Emmetを有効にすると、HTMLで「php」の展開が「<?php ?>」にならない問題の回避
"draw_minimap_border": true,