Brigadier, he did not care much about India, as was his case with most international countries. He was never pro-Indian nor was he anti-Indian. The Saudis and the GCC are very cordial with India and we all know the problem there.
Gaddafi's relationship with Pakistan was also simply for his own use, and likely initiated by Z. Bhutto who went Islamic country hopping to try and embrace the "Islamic Ummah" and attempt to become a "great Muslim leader" on the lines of India leading NAM.
Gaddafi used the Pakistanis, and as soon as he had no use for them, he dumped the Pakistanis in front of the whole world and exposed their proliferation of nuclear tech for the world to see.
Islam may have personally meant a lot to him (though that also has doubts, apparently the man believed in reincarnation), he was always a pan-arab, not pan-Islam.
Here it from Gaddafi himself on how he felt about Islam.
This will indicate Gaddaff's Islamic credential and zeal to promote Islam and side by side Pan Arabism.
After Nasser's death, Gaddafi attempted to become the leader of Arab nationalism. He wanted to create a "Great Islamic State of the Sahel", unifying the Arab states of North Africa into one.
As early as 1969, Gaddafi contributed to the Islamization of Sudan and Chad, granting military bases and support to the FROLINAT revolutionary forces.
In 1971, when Muslims took power in Sudan, he offered to merge Libya with Sudan.Gaafar Nimeiry, the President of Sudan, turned him down and angered Gaddafi by signing a peace settlement with the Sudanese Christians.Gaddafi took matters into his own hands in 1972, organizing the Islamic Legion, a paramilitary group, to arabize the region. He dispatched The Islamic Legion to Lebanon, Syria, Uganda, and Palestine to take active measures to ensure Islamic control. The Islamic Legion was highly active in Sudan and Chad, and nearly removed the Toubou population of southern Libya through violence.
Through the 1970s and 1980s, Gaddafi led an armed conflict against Chad, and occupied the Aouzou strip. During the 1970s, two Muslim leaders, Goukouni Oueddei and Habre, were fighting against the Christian southerners for control of Chad. Gaddafi supported them, and when they seized control in 1979, he offered to merge with Chad. Goukouni turned him down, and Gaddafi withdrew Libyan troops in 1981 because of growing opposition from France and neighboring African nations. Gaddafi's withdrawal left Goukouni vulnerable in Chad, and in 1982, his former partner, Habre, led a coup to remove him from Chad. Gaddafi helped Goukouni regain territory in Chad, and fought with Habre's forces.
In 1987, Gaddafi engaged in a full-out war with Chad, suffering a humiliating loss in 1987 during the Toyota War. Libya took heavy casualties, losing one tenth of its army (7,500 troops) and 1.5 billion dollars worth of military equipment. Chad lost 1,000 troops, and was supported by both the United States and France. During the war, Gaddafi lost his long-time ally, Goukouni Oueddei, who repaired his relationship with Habre in 1987. Gaddafi gave Habre an offer to make complete peace, and promised to return all Chadian prisoners in Libya. He also promised to pay reparations for the damage done to Chad, and promised financial support to fight poverty. He also announced that he would push to end the death penalty in Libya, end "revolutionary" courts, free hundreds of political prisoners.
and warmed relations with African leaders concerned about his
"Green revolution." Former Libyan soldiers and rebel groups supported by Libya continued to fight the Chadian government independent of Gaddafi. Their organization, the Arab Gathering, was an Arab supremacist group that also contributing to violence in Sudan. Members of this group later developed into leaders of the Janjaweed.....
Libya's society became increasingly Islamic during Gaddafi's rule. His "purification laws" were put into effect in 1994, punishing theft by the amputation of limbs, and fornication and adultery by flogging. Under the Libyan constitution, homosexual relations are punishable by up to 5 years in jail
Wiki
Of course he also wanted to project himself as a great pan African leader. That is why they gave him the title, 'King of Kings'!