Showing posts with label Emacs. Show all posts
Showing posts with label Emacs. Show all posts

Wednesday, April 9, 2014

Start to Like Org Clock

Start the learn how to use "CLOCK" in org-mode. I love it. You can do
the clock in and clock out. Then you got your simple report on how
much time you spent on your little tasks or the whole project. That's
so easy and wonderful.

After 3 days, I figure out that I spend 2.05 hours on my current
project. Hope me boss would never read this post. The "CLOCK" will be
part of my self management tool from now.


Sunday, March 2, 2014

Pull Request has been Merged

I'm just too excited to post this because my pull request is
merged. Actually that is very simple change of a Python library and
what I have done is just changed then way to import the libraries to
make it support Python3. But it is the first time I try to contribute.
Really hope this could happened 20+ years ago when I was still
young. But even to late, right?

BTW, also remember a reply from a forum: "Change request? Why not just
change the code and send a PULL REQUEST?"

If you never do that, try it, simple change can be merged :-).


Wednesday, February 26, 2014

My First Blog Post from Emacs Org-mode

Have post anything for about 2 years. And now I am learning Emacs org-mode
That's really a wonderful tool I have ever seen before. Now try everything
with org-mode.

Here is the first post from it. Hope I can restart to post something useful
soon.

My blog will focus on what I am learning and plan to learn:

  • Emacs
  • Git
  • Linux
  • RTL Design
    • Verilog
    • VHDL
  • Verification
    • UVM
    • SystemC
  • Python
  • C++

Hope will become notes and progress tracking.


Thursday, February 24, 2011

Emacs: Start window default size

dit or create ~/.Xdefaults

Put something like this in it:
Code:
Emacs.geometry: 80x30+0+30
Save the file. This should make emacs open a window which is 80 characters wide, 30 lines tall, and shifted 0 pixels to the right and 30 pixels down from the upper left corner.

Then in a terminal run:
Code:
xrdb -merge ~/.Xdefaults
Launch emacs.

Wednesday, September 8, 2010

Resolving Emacs "murrine_style_draw_box: assertion `height >= -1'"

Modify the entry in /usr/share/themes/Ambiance/gtk-2.0/gtkrc from GtkRange::trough-under-steppers = 0 to GtkRange::trough-under-steppers = 1.

Original Article: http://thehacklist.blogspot.com/2010/06/resolving-murrinestyledrawbox-assertion.html

Tuesday, April 22, 2008

Emacs Tip: Keyboard Macros

If you find yourself doing a repetitive set of keystrokes, but don't want to bother with learning how to actually write a script for that, then record a keyboard macro.


C-x ( begins recording
C-x ) ends recording
C-x e executes the last keyboard macro
C-x C-k lets you edit the keyboard macro you just wrote

If find yourself using lots of macros, you can even save them to your
.emacs and name them (for later use).

For more documentation, see the info page:

C-h K C-x (

Or check out the Keyboard Macros section in the Emacs wiki.

Thursday, August 9, 2007

Quick Tip: show-paren-mode

When show-paren-mode is enabled a matching parenthesis is highlighted based on the location of point (i.e., when your cursor is on a parenthesis). show-paren-mode Example

You can tweak the behaviour of this minor mode by adjusting show-paren-style and the show-paren-delay. There are three styles to choose from:

  • parenthesis – shows the matching paren
  • expression – shows the entire expression enclosed by the paren, and
  • mixed – shows the matching paren if it is visible, and the expression otherwise.

To obtain this behaviour, add the following to your .emacs file:

(show-paren-mode t)

Thursday, May 31, 2007

Compile Emacs23

The latest cvs code can use xft font. It also can use the input method in Gnome.

1. Download the S source code
sudo apt-get install ssh cvs
sudo apt-get install texinfo

export CVS_RSH="ssh"
cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/cvsroot/emacs co -r emacs-unicode-2 emacs

2. Compile
sudo apt-get install build-essential
sudo apt-get build-dep emacs21
sudo apt-get install xserver-xorg-dev
sudo apt-get install xorg-dev
sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev
sudo apt-get install libgtk2.0-dev

./configure --prefix=/usr --with-x-toolkit=gtk
make bootstrap
make info
sudo make install

AUTOASCIIENUM problem in Verilog-mode

When using the AUTOASCIIENUM, the last parameter should not be empty "". If you do not have identified labels on FSM state parameters, you can just have a space there: " ". With empty parameter, it will make emacs halt.