new test
Wednesday, September 28, 2011
;; My init.el file
;; Author: Nirmal
;; Revision: 0.1
;; Date: April 6, 2011
;; Descirption: init file for emacs on windows. This file is a comilation of intialization features from different sources
;; Windows specific installation
;; - HOME variable: C:\Emacs\
;; - PATH variable: C:\cygwin\bin ;; requires Cygwin installation
;;--------------------------------------------------------------------
;; set the load path
;;--------------------------------------------------------------------
;;--------------------------------------------------------------------
;; Color and Display related
;;--------------------------------------------------------------------
;; color-theme package
(add-to-list 'load-path "C:/Emacs/.emacs.d/plugins/color-theme-6.6.0")
;; load extra color-theme packages
(load-file "~/.emacs.d/plugins/zenburn.el")
(load-file "~/.emacs.d/plugins/color-theme-railscasts.el")
(load-file "~/.emacs.d/plugins/color-theme-tango.el")
(require 'color-theme)
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
;; (color-theme-railscasts)))
(color-theme-zenburn)))
;; hl-line: highlight the current line
(when (fboundp 'global-hl-line-mode)
(global-hl-line-mode t)) ;; turn it on for all modes by default
;; ;; To customize the background color
;; (set-face-background 'hl-line "#3f3f3f")
;; ;; see http://www.gnu.org/software/emacs/manual/html_node/emacs/Standard-Faces.html
;; (set-face-background 'modeline "#4466aa")
;; (set-face-background 'modeline-inactive "#555555")
;; (set-face-background 'fringe "#809088")
;; make the frame translucent
(defun djcb-opacity-modify (&optional dec)
"modify the transparency of the emacs frame; if DEC is t,
decrease the transparency, otherwise increase it in 10%-steps"
(let* ((alpha-or-nil (frame-parameter nil 'alpha)) ; nil before setting
(oldalpha (if alpha-or-nil alpha-or-nil 100))
(newalpha (if dec (- oldalpha 10) (+ oldalpha 10))))
(when (and (>= newalpha frame-alpha-lower-limit) (<= newalpha 100))
(modify-frame-parameters nil (list (cons 'alpha newalpha))))))
;; C-8 will increase opacity (== decrease transparency)
;; C-9 will decrease opacity (== increase transparency
;; C-0 will returns the state to normal
(global-set-key (kbd "C-8") '(lambda()(interactive)(djcb-opacity-modify)))
(global-set-key (kbd "C-9") '(lambda()(interactive)(djcb-opacity-modify t)))
(global-set-key (kbd "C-0") '(lambda()(interactive)
(modify-frame-parameters nil `((alpha . 100)))))
;;--------------------------------------------------------------------
;; General Settings
;;--------------------------------------------------------------------
;; Move point to a given line number
(global-set-key (kbd "M-g") 'goto-line)
;; ignore case when reading a buffer name
(setq read-buffer-completion-ignore-case t)
;; where to save the bookmarks
(setq bookmark-default-file "~/.emacs.d/bookmarks.txt")
;; each command that sets a bookmark will also save your bookmarks
(setq bookmark-save-flag 1)
;; visually indicate buffer boundaries and scrolling
(setq indicate-buffer-boundaries t)
;; highlight trailing whitespaces in all modes
;; (setq-default show-trailing-whitespace t)
;; show line numbers
(global-linum-mode 1)
;; show the line number in each mode line
(line-number-mode 1)
;; show the column number in each mode line
(column-number-mode 1)
;; use inactive face for mode-line in non-selected windows
(setq mode-line-in-non-selected-windows t)
;; see what I'm typing *immediately*
(setq echo-keystrokes 0.01)
;; searches and matches should ignore case
(setq-default case-fold-search t)
(setq default-case-fold-search t) ; FIXME obsolete since Emacs 23.2, but
; still needed!?
;; `M-x flush-lines' deletes each line that contains a match for REGEXP
;; visit a file
(global-set-key (kbd "
Posted by Nirmal at 4:42 AM 0 comments
# TEST BLOG# * Using Pcakage.el Ref: http://tromey.com/elpa/install.html The auto-install code below will download package.el and the url package (if you need it), will edit your .emacs to initialize the package manager on future invocations of Emacs, and will finally initialize the package manager in your currently running Emacs. There are two sets of instructions, depending on what version of Emacs you are using. If you are using Emacs 22, you already have the needed url package, and you can eval this code: (let ((buffer (url-retrieve-synchronously "http://tromey.com/elpa/package-install.el"))) (save-excursion (set-buffer buffer) (goto-char (point-min)) (re-search-forward "^$" nil 'move) (eval-region (point) (point-max)) (kill-buffer (current-buffer)))) If you don't know what "eval" means, it means that you should copy this into your *scratch* buffer, move your cursor just after the final closing paren, and type C-j. Once you have installed the package manager, type M-x package-list-packages. Type r in the package menu buffer to update the list of packages available from the server. If you want a particular package, type i next to its name to mark it for installation, and then x to download and install it. Note that for some packages, package.el requires you to have an external tar program. * writing Blogs using EMACS Ref: http://blog.kovanovic.info/using-weblogger-emacs-extension-to-write-blogs/ Ref: http://www.emacswiki.org/emacs/WebloggerMode
Posted by Nirmal at 3:17 AM 0 comments
Tuesday, June 21, 2011
EMACS TAGS
test blog writing from EMACS To set-up weblogger: M-x weblogger-setup-weblog RET To start a new entry M-x weblogger-start-entry After you’ve finished you can add it by just saving the buffer as usually with C-x s. If you then change it and then save again it will be updated
Posted by Nirmal at 12:25 PM 0 comments
Sunday, August 3, 2008
Getting back to Blog
Its really a long time since I have jotted down something. Needs to be regular on my blogs. Since last entry many things have changed and life has come a long way. Me and Shalini have already made a trip to Dehradun, alongwith Mummy and Papa jee. It was a nice trip... May be I can upload few snaps from there later.
Meanwhile, one significant development has taken place. We have shifted to Gurgaon, in a society called Todays Blossom - I. This is a nice place and has many similarities with our own home in Indirapuram. Fortunately, Shalini also liked this. since then life has become more comfortable. We no more jump out of bed and rush for office. Even evenings seems to be more pleasent with enought time for us to share good moments and fights !
Will try be regulary now onwards.... Today I tried to login to this blog area from office and voila ! I got it... Seems IT guys have done some changes and am able to access this are from office. Now, I can be more frequent and regular...
Posted by Nirmal at 10:13 PM 0 comments
Wednesday, October 10, 2007
Road trip to Nainital
We had planned for an early saturday start, but we instead we had a good fight ;-) and the whole program was tossed upside down. Finally we managed to compromise. Its really an interesting chemistry between all the married couples, which allows them to fight and love at the same time.
Finally we started at 8:00 AM in the morning instead of 4:00 AM as was planned earlier. Its alwasy good to do ones homework before visitng any tourist place. We had gathered enough information about the route we had to take and the destinations we had to cover during this trip.
We hit the NH24 and took Hapur bypass. NHAI has really done commendable job of constucting such a quality highway. I was already driving at 100+ Km/hr. The Euphoria soon ended as we drove pass the Hapur bypass highway and entered Gajraula. We got struck in a huge traffic jam. Two heavy trucks had a headon collision and the whole traffic was brought to a standstill. The jam was more than a kilometer. It took us an hour to crawl through the jam and cross the affected area. Luckily we finally managed to cross that and we were then crossing river Ganges. Shalini did not miss this chance to held me responsible for this delay in traffic jam, courtesy our morning headon collisoin ;-)
We crossed Gajraulla at aournd 11:00 Am. We had already planned for our journey break at Meriton, a motel jsut after crossing Gajraulla. We found it better that what we had read about it. The place was really good and we food was fantastic. We brought couple of music CDs from here.
After a refreshing breakfast, we started the journey again. We approached Moradabad and we took a right turn for Moradabad bypass. From here onward the road till Nainital is really good. On Moradabad bypass one finds a funny thing of paying the toll tax twice within 500 mtrs distance. I was driving at the max possible speed. It was a pleasure. After crossing Moradabad Bypass, we took a left U turn toward Moradabad city. and after few kms we took a right for Kashipur. The road signs are very clear. We crossed Tanda ( again a bad area but not that long ), Bazpur and finally Kaladhungi. A place where Jim Corbett spent a good part of his life. After Bazpur one will find the green jungle area and clear road. From here Nainital is only 34 Km. After few km the hill area started. I was driving very carefully, as it was my first trip to a hill station. We drove comfortably to Nainital. In between we stopped at places to enjoy the natural beauty this mountains offers.
Posted by Nirmal at 3:41 AM 0 comments
Labels: Nainital
Jaipur Trip !
The old Jaipur city is quite crowded with bad road condition, after crossing the old city area, we drove in the main Jaipur city. Its really well planned with really good road conditions. And then we started looking for a budget hotel. We realised that a pre-booking is always better. It took us more than 3 hrs to finally locate a good budget hotel. We checked in at Lakshmi Villas. The hotel is situated on the main road and is surrounded by a big green area. Even though the condition of the hotel was not that good, but it was comfortable stay. After a long journey, we were exhausted. We had our lunch and then we slept.
Evening we started for "Chowki Dhani", a place on the outskirt of Jaipur city. Its a must place to visit in Jaipur. Chowki Dhani gives you a panoramic view of the complete Rajasthan culture. We arrived the place at 9:00 PM at night, we were greeted by locals with tradition "tika" and "namaste". It was a great view inside. One can find all the flavours of traditional village culture. the place has evrything -- Elephant ride, camel ride, bullockcart, local magician to name a few.
Just out of curosity me and Shalini visited a palmist there. He could tell quite a few things about us, which were true, he also mentioned about something good for us in future. And it would be a mistake if i dont mention about the food there. We enjoyed "pani-poori", "kulfi", "jaljeera" and finally the dinner. The dinner was cooked in local flavour. We found it a bit difficult to enjoy the dinner part. But overall it was a nice experience. We took so many snaps and finally we left "chowki dhani" with lots of good and plesurable moments with us.
Next day, we had planned for city tour. We started with city palace. Its again a place worth visiting. Shalini did some small shopping ( only to realise later that it was not of good quality). Then we visited the nearby "Jantar-Mantar". You have to appreciate the kind of accurate geometric structure, which were built such a long time back in history. I personally felt that the placve could have been restored in a much better way.
Then finally it was a time for Shalini to start with her local shopping. She was as usual excited by the range of local made snadals. She finally selected a "kholapuri chappal" and couple of handbags.
During our return journey to Delhi, we visited Amer Fort. Its know for having the largest "toop" (tank) in India. Its awesome to look at the dimensions of the tank. We were told that it was test fired only once. The guide took us around the fort and explained some interesting facts about the fort and its history. We visited a local souvenir shop. Shalini was again happy, this time it was the jwellery which fascinated her and hold her attention. A big hole in the pocket...
While returning we visited one more nearby fort and had our lunch there. It was really good. Finally we hi the road for Delhi. We crossed "Sheesh-mahal" on our way, but did not visit that as we were running short of time.
It was already night when we were approaching Gurgaon. We took our dinner at a dhaba -- allo parantha & curd and hot tea. And finally we crossed Delhi again to reach our home. We both were tired and had a good sleep, with beautiful memories of Jaipur.....
Posted by Nirmal at 2:18 AM 0 comments
Monday, April 16, 2007
Shalini's broken leg saga !
Yesterday we were invited by Mama and Mami jee for a dinner at their residence in Badarpur. My first car drive to Mama's home. The driving was really cool till we reached Meethapur cross-road. It was after that, that we got confused. Anyway finally we managed to hit the right path. Well it really boosted my aplomb to a great extent...
Then we decided to make a visit to Mausi jee's home. I was driving with great care to reach the destination. Driving to that gali was an experience in its own way, I am sure it can be compared with a Indian car ralley ;-) .....
Finally we reached Mausi's home. and it was then when Shalini was trying to help me in parking my car, she got her leg struck in a pit and fell down. Ooucchhh !!!! maaaa !!! these were her first few words... I could not do anything except watching her crying in pain. I got down and soon we realised, the whole muhalla-walas were watching this event live, from their respective roof tops... Even without raising my head to look at the uninvited viewers, I could sense that the place was crowded with curious neighbours to judge the situation and the root cause of the accident. The great fall of Shalini was thus accomplished...
She was still in pain and could hardly move.... Somehow she managed to drag herself and make herself sit on a bed. Mausa jee instantly flung into action and started looking for a balm, but in vain. But he did not loose the hope and kept on looking at the same place again and again, hoping that the balm will make itself visible somehow.... Alas ! it could not !
Fortunately Shalini did not develop a swelling, I was little relieved... Well then the attention was shifted on me and I was made responsible for this event. As it was me who had "instigated" Shalini to wear Sharee. And like a newly married obedient husband I realised my mistake and accepted my mistake with all my apology. In the course of talking, Mausi jee suddenly noticed that Shalini was not wearing a "payal" or "bichhuaa" ( ring for toe fingers). With this newly found topic, the whole attention was shifted from her paining ankle to her get up. She was given few remarks on what she should wear and what not...
After a round of tea and snacks, it was time to say goodbye to Mausi and Mausa jee, who was still looking for that balm....
Posted by Nirmal at 1:01 AM 1 comments
Sunday, April 15, 2007
Introduction !
Hmm ! so here I am starting my Blog journey from here. To start with I am a 28 yrs old married guy, working in Noida and staying in Indirapuram, a fast developing area in NCR region of New Delhi. Shalini, my better half, and me, her better half, are enjoying time with each other ever since we got married on 25th Feb 2007. Life is so far so good...
We are a small family, Father is now retired after serving Indian Air Force for 35 yrs. Mom, a housewife, has struggled all through her married life to impart better education to her 3 children and see the them climbing the ladder of success day by day. Because of the transferable nature of dad's service we have been changing our station after every 4-5 yrs, before finally completing our schooling from Secundrabad.
Life has been a very long journey so far, after so many years of hardship and struggle, we all have now finally started settling down in our respective places. Bro is now married and settled in Florida, with his soul mate Sheetal bhabhi, Narendra is doing great in Bangalore. Mummy and Papa jee are now in Gorakhpur, trying to revive their life, in dad' post retirement phase...
......
Posted by Nirmal at 9:49 PM 0 comments