Last active
August 29, 2015 14:04
-
-
Save gsathya/ed9108a05dee6f1d639b to your computer and use it in GitHub Desktop.
This patch removes the annoying audible-bell on emacs. Apply the homebrew patch and install with `brew install emacs --HEAD --use-git-head`
This file contains 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
From 604821b954478b1b10725de9f625682e97080b01 Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <gsathya.ceg@gmail.com> | |
Date: Tue, 29 Jul 2014 17:26:51 -0700 | |
Subject: [PATCH 1/1] Add patch to disable Emacs audible bell on osx | |
--- | |
Library/Formula/emacs.rb | 5 +++++ | |
1 file changed, 5 insertions(+) | |
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb | |
index 385eead..ad2f886 100644 | |
--- a/Library/Formula/emacs.rb | |
+++ b/Library/Formula/emacs.rb | |
@@ -24,6 +24,11 @@ class Emacs < Formula | |
depends_on :autoconf | |
depends_on :automake | |
+ | |
+ patch do | |
+ url "https://gist.githubusercontent.com/gsathya/ed9108a05dee6f1d639b/raw/64f011b5ca75f18acbae024c93225990e357b7b0/remove_audible_bell.patch" | |
+ sha1 "d478ec9f7e5182da861852db1b483e3c5f13e39c" | |
+ end | |
end | |
stable do | |
-- | |
1.9.3 | |
This file contains 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
From 605b88b9791a9e72595e1624a951a8c5e828cd37 Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <gsathya.ceg@gmail.com> | |
Date: Tue, 29 Jul 2014 17:15:35 -0700 | |
Subject: [PATCH 1/1] No audible bell on OSX | |
--- | |
src/nsterm.m | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/src/nsterm.m b/src/nsterm.m | |
index 47ad28a..5749b81 100644 | |
--- a/src/nsterm.m | |
+++ b/src/nsterm.m | |
@@ -1033,7 +1033,7 @@ ns_ring_bell (struct frame *f) | |
} | |
else | |
{ | |
- NSBeep (); | |
+ // NSBeep (); | |
} | |
} | |
-- | |
1.9.3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment